Image processing apparatus, method and computer program product

ABSTRACT

An image reading unit reads an original image, one main scan line by one main scan line, in a sub-scan direction. A window setting unit sets a measuring window in a bit-map formation of image data obtained through the image reading unit, in a manner in which the measuring window moves in a predetermined manner so that the measuring window appropriately includes pixels of an oblique line image which is formed in the bit-map formation of image data as a result of being read through the image reading unit. A position error measuring unit processes image data defined by the measuring window, and, thus, measures an error of the oblique line image formed in the bit-map formation of obtained image data between a predetermined reference state and an actual reading state.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an image processing apparatus andmethod wherein reading position errors in a bit-map formation of imagedata, which has been read or scanned through a reading device such as alight-to-electricity converting device, are detected, or a speed atwhich an original image is read or scanned is measured, and/orthus-detected reading or scanning position errors or the reading orscanning speed errors, in a sub-scan direction, for example, arecompensated for. Such an art may be applied to a copy machine (or acopier), a facsimile machine and so forth, so that reading positionerrors occurring when reading an original image may be detected andcorrected. Thereby, the original image can be precisely read or scanned,or the read image can be appropriately corrected, and thus the readimage data is precisely output without image distortion or degradation.

2. Description of the Related Art

As a first example of the related art, Shunsuke Hattori et al. discloseA Development of Image Scanner of High Resolution in the Japan Societyof Mechanical Engineers, 71 st ordinary general meeting, lecturemeeting, lecture paper collection (IV). Therein, an interpolationoperation is performed on image data which is obtained as a result ofreading a test chart having even-pitch lines arranged therein in asub-scan direction. That image data is image data which is discrete inthose sub-scan direction line intervals. From the interpolationoperation result, the central positions of black lines and white linesof the even-pitch lines are obtained. Then, differences between thecentral positions and the reference pitch of the test chart are read.Thereby, image data reading position errors due to apparatus vibrationor the like are detected.

As a second example of the related art, Japanese Laid-Open PatentApplication No.6-297758 discloses A Scan-line Pitch Measuring Method.Therein, a pattern of a hard copy having even-pitch pattern data writtentherein is read. Thereby, unevenness in pitches of scan lines which areused in a hard-copy apparatus is measured.

In the above-described first example of the related art, due to possiblespatial differences between the edges of the even-pitch lines andsampling positions, `moire` may occur wherein a difference occursbetween data which has been obtained as a result of reading the samepattern. Due to the moire, thus-obtained read data may not be data whichindicates positions corresponding to the edges of the pattern. Thereby,an accuracy in measuring reading position errors may be degraded. Suchan adverse effect is very noticeable when the even-pitch line pattern isso fine as to approximate the resolution of the reading apparatus. As aresult, the measuring of reading position errors may not be performed.Thus, using this method, it is not possible to measure, with a highaccuracy, reading position errors of a pattern which is so fine as toapproximate or to be more than the resolution of the reading apparatus.

Further, because an even-pitch line pattern is used, even if the effectof moire is ignored, in a case where the pitch of the pattern is finefor measuring reading position errors of a high-frequency component, dueto the limitation of the MTF (Modulation Transfer Ratio) of the imageformation system, a difference in a signal indicating image tone isdisadvantageously reduced. Thus the measuring accuracy is degraded.

It is considered that, in the case where the pitch of the pattern isfiner, the measuring frequency band is widened to a higher frequency.Thereby, it is not possible to provide a high measuring accuracy.Therefore, in order to solve this problem, the sampled data is made toundergo an interpolation operation. In order to improve the effect ofthe interpolation operation, it is necessary to increase an amount ofsurrounding data to be processed. As a result, a longer time is requiredfor the operation. Further, the interpolation operation inherently maynot provide true data, and thus the measuring accuracy may be degraded.Further, in the first example, image data to be used is obtained as aresult of a specific light-reception element of the light-to-electricityconverting device being used to scan the pattern in the sub-scandirection. The light-reception element itself may provide noise whichmay degrade the measuring accuracy.

In the above-described method in the second example of the related art,when measuring, the light-to-electricity converting device is used toread the pattern and thus-obtained data is used. Therefore, in thismethod, at this time, reading or scanning unevenness when reading orscanning the hard copy is not considered in measuring pitch unevennessin the pattern of the hard copy. Thus, high accuracy measuring may notbe achieved. Further, this method also has a `moire` problem similar tothat which occurs in the above-described first example of the relatedart.

Generally speaking, for example, in a line scanning image readingapparatus wherein a plurality of R, G, B image sensors are arranged sothat the R, G, B sensors are separate in the sub-scan direction and arein parallel, there is a time difference between reading of image dataread through the respective image sensors when those sensors read thesame position in an original image. Therefore, it is necessary toperform correction on the obtained image data such that the respectivesensors may provide the image data of the same position in the originalimage at the same time. Otherwise, color deviation may occur in colorimage reading, and thus it is not possible to precisely read color. Suchcolor deviation is defined according to the distances between therespective sensors and according to the sensor scanning speed. Possibleunevenness in the sensor scanning speed may cause color deviation in thecolor image reading.

In order to eliminate such a problem, for example, Japanese Laid-OpenPatent Application No.6-22159 discloses an art wherein a microprocessorcounts internal clock pulses in an interval between pulses which aregenerated by a motor which drives a reading carriage. The microprocessorobtains the motor driving speed from the number of the counted clockpulses. The thus-obtained motor driving speed is considered tocorrespond to an actual scanning speed. Based on the actual scanningspeed, timing errors or reading position errors occurring between therespective sensors are compensated for. In this method, the data fromupstream sensors is corrected with respect to the data from downstreamsensors so that the reading position errors between the data from therespective sensors may be compensated. Thus, color deviation due to thereading position errors may be prevented. In thiscorrection/compensation, for a delay amount which corresponds to alength less than one scan line, the data is obtained as a result ofperforming a weighting average using the front and rear data.

In this art, the sub-scan direction scanning speed is detected from therotation speed of the reading carriage driving motor. In a case wherethe reading apparatus is of a type wherein an image placed on a plane isscanned and is thus read, there should be a power transmission mechanismwhich converts the rotation motion of the motor into the linear motionfor driving the reading carriage. Such a power transmission mechanismmay inherently cause unevenness in the transmitted driving speed. Theremay be difference between possible unevenness in the rotation speed ofthe driving motor and possible unevenness in the linear speed of thereading carriage. Therefore, it may not be possible to precisely detectthe actual scanning speed. As a result, the data, indicating thescanning speed, obtained in this method may not be suitable forcompensating for the reading position errors due to the spatialdifference between the respective sensors.

Further, in this art, the data from the upstream sensors are correctedwith respect to the data from the downstream sensors as mentioned above.Therefore, the data from the downstream sensors are not changed. If thereading scanning speed accidentally varies, the reading position differsfrom a reading position in a case where the reading scanning speed didnot vary. Because the data from the downstream sensors are not changedin the correction/compensation operation as mentioned above, such areading scanning speed variation causes undesirableexpansion/contraction in the read image.

In other words, in this art, only the data from the upstream sensors iscorrected when such a reading scanning speed variation occurs.Therefore, it is possible to prevent color deviation from occurring.However, it is not possible to prevent extraction/contraction fromoccurring in the overall color image due to the reading scanning speedvariation. Thus, reading position errors remain. Further, in this art,the correction/compensation operation is performed on the assumptionthat the distances between the respective sensors are fixed, and thisart cannot be applied to a reading apparatus which uses only a singlesensor.

Japanese Laid-Open Patent Application No.63-287167 discloses a methodfor obtaining image data which does not include reading position errorsdue to reading scanning speed variation. In this method, a positionsensor is provided in close proximity to an original image. By using theoutput of the position sensor, image sensor reading timing iscontrolled. However, in this method, the reading timing may varyaccordingly. Thereby, the CCD charge time varies, and thus the apparentsensitivity thereof varies. Therefore, it is necessary to correct thesensitivity.

Further, in this method, in a case where an image processing operation,such as a filtering operation, a halftone processing operation or thelike, is performed on a plurality of scan lines, when intervals betweenthe scan lines differ from each other due to the above-mentioned readingtime variation, a problematic situation occurs. That is, such scan lineinterval differences may not be compensated for because, ordinarily, aclock synchronization system is used there. In order to compensate forthe scan line interval difference, a buffer memory is required for thispurpose.

SUMMARY OF THE INVENTION

The present invention has been devised in consideration of theabove-described problems occurring in the related art. An object of thepresent invention is to provide a reading pixel position error measuringapparatus or an image reading apparatus wherein pixel position errors ina bit-map formation of read image data or original image scanning speederrors can be measured with a high accuracy.

Another object of the present invention is to provide such ahigh-accuracy reading pixel position error measuring apparatus whichrequires merely a simple computing process.

Another object of the present invention is to provide such a readingpixel position error measuring apparatus wherein an operation load borneby the apparatus can be reduced, and a necessary computing process canbe simplified.

Another object of the present invention is to provide such a readingpixel position error measuring apparatus wherein a reading pixelposition error measurement for the overall image reading area and also areading pixel position error measurement for a specific width of imagereading area can be performed.

Another object of the present invention is to provide an image readingapparatus wherein image data of an image which is precisely identical toan original image and has a high image quality can be output as a resultof correcting/compensating for reading pixel position errors such asthose mentioned above.

Another object of the present invention is to provide a reading pixelposition error measuring apparatus or an image reading apparatus whichhas a reference pattern to be used in a reading pixel position errormeasurement and a sheet member having the reference pattern formedthereon appropriately mounted on the apparatus.

Another object of the present invention is to provide such an imagereading apparatus wherein, even if small spots or the like have beenundesirably formed in background areas of the reference pattern which isused for the reading pixel position error measurement or scanning speederror measurement, degradation of the reading pixel position errormeasurement or scanning speed error measurement due to those spots orthe like can be prevented.

Another object of the present invention is to provide such an imagereading apparatus wherein, even if white objects or the like have beenundesirably formed on or in close proximity to oblique lines of thereference pattern which is used for the reading pixel position errormeasurement or scanning speed error measurement, degradation of thereading pixel position error measurement or scanning speed errormeasurement due to those objects or the like can be prevented. Thoseobjects are formed in positions such that an effect of those objects maynot be removed only by changing image data corresponding to an objectapart from those oblique lines into 0, and those objects may adverselyaffect image data of an image region having a middle tone level and maythus adversely affect the reading pixel position error measurement orscanning speed error measurement.

Another object of the present invention is to provide such an imagereading apparatus wherein, even if tone contrast of read image data ofthe oblique lines is low, the reading pixel position error measurementor scanning speed error measurement can be performed with a highaccuracy.

Another object of the present invention is to enable a furtherhigh-accuracy reading pixel position error measurement or scanning speederror measurement by exceeding the limitations of tone resolution of theimage reading apparatus.

Another object of the present invention is to enable a furtherhigh-accuracy reading pixel position error measurement or scanning speederror measurement by exceeding the limitations of space resolution ofthe image reading apparatus.

An image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction;

window setting means for setting a measuring window in a bit-mapformation of image data obtained through said image reading means, in amanner in which said measuring window moves along an oblique line imagewhich is formed in said bit-map formation of image data as a result ofbeing read through said image reading means; and

position error measuring means for processing image data defined by saidmeasuring window and, thus, measuring an error of said oblique lineimage formed in said bit-map formation of obtained image data between apredetermined reference state and an actual reading state.

In the above-described apparatus, it is preferable that:

said bit-map formation comprises a plurality of pixels, each pixelhaving a main scan direction size and a sub-scan direction size, whichsizes are the same as one another; and

said oblique line image is positioned at an oblique angle 45° from saidmain scan direction and also from said sub-scan direction.

Thereby, it is possible to perform the reading pixel position errormeasurement with a high accuracy through a simple calculation withoutusing a fine measuring pattern. Further, it is possible to prevent`moire` effect from adversely affecting the measurement accuracy, andperform the reading pixel position error measurement with a resolutionhigher than the pixel size.

In the above-described image reading apparatus, it is preferable thatsaid position error measuring means calculates the center of gravity ofimage data of pixels defined by said measuring window in said bit-mapformation of obtained image data, and also calculates a deviation of thecenter of gravity when said measuring window is shifted.

Further, it is also preferable that said window setting means sets themeasuring window in the bit-map formation of image data obtained throughsaid image reading means, in a manner in which said measuring windowmoves along a plurality of oblique line images, one oblique line imageby one oblique line image, which oblique line images are formed in saidbit-map formation of image data as a result of being read through saidimage reading means. By using the measuring pattern of a plurality ofparallel oblique lines such as those shown in FIGS. 8A-8D, it ispossible that the reading pixel position error measurement is performednot only on the entire original image object reading area (contactglass) but also a specified thin area thereof. Further, by limiting anarea for locating the measuring pattern in the contact glass, it ispossible to use the remaining area for locating other kind of images.For example, the remaining area may be used for a test pattern for otherkinds of measurements such as a resolution measurement.

Further, it is preferable that:

said plurality of oblique line images are oblique from said main scandirection and also from said sub-scan direction, are arranged inparallel to each other, are arranged in said sub-scan direction, whereineach pair of adjacent oblique line images are so close to one anotherthat a sub-scan direction one of said pair of adjacent oblique lineimages has a tail end and the other one has a head end which projectsfurther in said sub-scan line direction than said tail end of saidsub-scan direction one; and

said measuring window moves from a position of said head end of saidother oblique line image to a position of said tail end of said sub-scandirection oblique line image.

Another image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction;

error measuring means for measuring a reading pixel position errorincluded in image data obtained through said image reading means, andproviding data concerning said reading pixel position error; and

error correcting means for correcting said reading pixel position errorusing said data provided by said error measuring means.

Thereby, it is possible to provide the image reading apparatus whichoutputs images which are, with a high accuracy, similar to originalimages, without a pixel position error.

Further, it is preferable that said error measuring means furthercomprise:

a measuring pattern comprising even-pitch oblique lines, each of whichis oblique from a main scan direction and also from said sub-scandirection;

light-to-electricity converting means for reading said measuringpattern, and providing image data of said measuring pattern;

processing means for processing said image data provided by saidlight-to-electricity converting means, and obtaining said reading pixelposition error

By using the measuring pattern of the plurality of parallel obliquelines, it is possible to perform the reading pixel position errormeasurement with a high accuracy and in a wide frequency range. Therebythe reading pixel position error correction can be performed with a highaccuracy.

It is preferable that:

said error measuring means measures a reading pixel position errorbetween each pair of adjacent main scan lines; and

said error correcting means uses said reading pixel position errormeasured by said error measuring means, performs a predeterminedinterpolation operation on image data of a plurality of main scan lineswhich successively lie in said sub-scan direction, and thus providescorrected image data one main scan line by one main scan line.

By performing interpolation using image data of adjacent main scan linesand position error data therebetween, it is possible to perform positionerror correction with a high accuracy.

Another image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction; and

position error measuring means for processing image data read throughsaid image reading means, said image data being obtained as a result ofa measuring pattern being read by said image reading means, saidmeasuring pattern comprising a white background and a plurality ofeven-pitch oblique lines arranged in said white background, each linebeing oblique from a main scan direction and also from said sub-scandirection;

and wherein said measuring pattern is formed on a sheet material whichis long and has a longitudinal-direction end, said sheet material beingfixed, so that said measuring pattern can be read through said imagereading means, on said image reading apparatus only through saidlongitudinal-direction end.

By fixing the sheet material of the measuring pattern in a manner inwhich only a longitudinal-direction end thereof is fixed, it is possibleto cause the sheet material to closely lie on the contact glass of theimage reading apparatus and thus to prevent the sheet material frombending. As a result, the measuring pattern reading can be performedwith a high accuracy, and thus it is possible to perform the readingpixel position error measurement with a high accuracy and in a widefrequency range.

Another image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction;

position error measuring means for processing image data read throughsaid image reading means, said image data being obtained as a result ofa measuring pattern being read by said image reading means, saidmeasuring pattern comprising a white background and a plurality ofeven-pitch oblique lines arranged in said white background, each linebeing oblique from a main scan direction and also from said sub-scandirection;

shading correcting means for performing a predetermined shadingcorrecting operation on image data obtained through said image readingmeans;

a measuring chart having said measuring pattern provided thereon; and

a reference tone plate for said shading correcting means to perform saidpredetermined shading correcting operation on image data obtained as aresult of a tone of said reference tone plate being read through saidimage reading means,

wherein said reference tone plate is provided to on said image readingapparatus at a position, relative to a provided position of saidmeasuring chart, such that said predetermined shading correctionoperation can be performed on image data which is obtained as a resultof said measuring pattern being read through said image reading means.

Thereby, the measuring pattern reading can be performed with a highaccuracy, and thus it is possible to perform the reading pixel positionerror measurement with a high accuracy.

Another image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction;

position error measuring means for processing image data read throughsaid image reading means, said image data being obtained as a result ofa measuring pattern being read by said image reading means, saidmeasuring pattern comprising a white background and a plurality ofeven-pitch oblique lines arranged in said white background, each linebeing oblique from a main scan direction and also from said sub-scandirection; and

noise reduction processing means for performing a predetermined noisereduction operation on said image data of said measuring pattern.

It is preferable that said position error measuring means sets ameasuring window in a bit-map formation of said image data, in a mannerin which said measuring window moves along each of said oblique lines ofsaid measuring pattern in said bit-map formation of said image data; andobtain the center of gravity of said image data of pixels defined bysaid measuring window.

It is preferable that said noise reduction processing means comprisesmeans for converting image data of a pixel to be `0`, which pixel isapart, more than a predetermined distance, from said oblique line imagein said measuring window. By merely the simple operation of convertingimage data into `0`, which image data should be `0` but some noisecauses the data not to be `0`, accuracy of the reading pixel positionerror measurement can be effectively improved. In fact, because thecenter of gravity calculation is performed in the measurement, data ofpixels apart from the oblique line image may very adversely affect theaccuracy.

It is preferable that said noise reduction processing means comprisesmeans for performing a predetermined smoothing operation on said imagedata. Thereby, it is possible to effectively reduce noises byeffectively using the characteristics of image data of the oblique lineimage.

It is preferable that said noise reduction processing means comprisesmeans for removing image data representing a separate point (asdescribed with reference to FIG. 26). Thereby, for example, when a blackparticle, forming a separate point image, is undesirably adhered inproximity of an edge of an oblique line image of the measuring pattern(which point image cannot be removed by converting into `0` image dataof a pixel apart from the oblique line image as in the above-mentionedmethod), or when a white small particle, forming a separate point image,is undesirably adhered inside an oblique line image of the measuringpattern (such noises may affect obtained image data of amiddle-tone-level region and thus may adversely affect measurementaccuracy), such possible adverse affection can be removed.

It is preferable that said noise reduction processing means comprisesmeans for enlarging a contrast of said image data. Thereby, themeasurement accuracy can be improved.

It is preferable that said noise reduction processing means comprisesmeans for increasing a number of possible tone levels of said image dataand, also, means for performing a predetermined smoothing operation onimage data of an increased number of possible tone levels.

It is preferable that said noise reduction processing means comprisesmeans for improving a resolution of said image data and, also, means forperforming a predetermined smoothing operation on image data of animproved resolution.

It is preferable that said noise reduction processing means comprisesmeans for increasing a number of possible tone levels of said imagedata, means for improving a resolution of said image data, and, also,means for performing a predetermined smoothing operation on image dataof an increased number of possible tone levels and an improvedresolution.

Thereby, it is possible to effectively remove measurement noises andthus high-accuracy measurement can be performed.

Another image reading apparatus, according to the present invention,comprises:

image reading means for reading an original image, one main scan line byone main scan line, in a sub-scan direction;

window setting means for setting a measuring window in a bit-mapformation of image data obtained through said image reading means, in amanner in which said measuring window moves along an oblique line imagewhich is formed in said bit-map formation of image data as a result ofbeing read through said image reading means; and

center of gravity calculating means for calculating the center ofgravity of image data of pixels defined by said measuring window in saidbit-map formation of said image data;

window shifting control means for determining whether or not saidmeasuring window is shifted according to a center of gravity calculationresult of said center gravity calculating means; and

position error measuring means for measuring a reading pixel positionerror from said center of gravity calculated by said center of gravitycalculating means.

Thereby, it is not necessary to use a measuring window of a large size,reading pixel position error in the sub-scan direction can be measuredwith a high accuracy, and the measurement with a wide dynamic range canbe performed. Further, because it is possible to use a measuring windowof a small size, it is possible to reduce a required capacity of amemory, and to reduce a processing time.

It is preferable that a size in a main scan direction of said measuringwindow is larger than a width in said main scan direction of saidoblique line image. In this arrangement, it is not necessary to use veryfine oblique lines. By using bold oblique lines, it is possible toperform the measurement without considering MTF (Modulation TransferRatio) of the optical system of the image reading apparatus.

Another image reading apparatus, according to the present invention,comprises:

a reading carriage which moves in a sub-scan direction and thus reads anoriginal image;

reading pixel position detecting means using image data read throughsaid reading carriage for detecting a reading pixel position error andthus detecting an actual reading pixel position in said sub-scandirection;

correction factor calculating means for calculating a correction factorusing a predetermined weighting function based on said actual readingpixel position calculated by said reading pixel position detectingmeans;

interpolating means, using said correction factor and said image data,and thus estimating, by interpolation, correct image data which shouldbe obtained when no reading pixel position error occurs.

Thereby, if a scanning speed variation of the reading carriage occurs,it can thus be detected by the reading pixel position error measurement,and, thus, image data which does not include a reading pixel positionerror can be obtained.

It is preferable that cubic function convolution is used as saidweighting function. Thereby, high-accuracy image data interpolationcorrection can be performed.

It is preferable that a calculation of said correction factor and acalculation of addition of a plurality of correction factors, for saidinterpolation, are performed only once when performing saidinterpolation for each main scan line. Thereby, the interpolationcalculation can be simplified, and thus a processing time can beshortened.

Other objects and further features of the present invention will becomemore apparent from the following detailed description when read inconjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a reading pixel position error measurement principleof a first embodiment of the present invention;

FIG. 2 shows a block diagram of a system configuration of an imagereading apparatus in the first embodiment of the present invention;

FIGS. 3A and 3B show a block diagram of a system configuration of avariant embodiment of the first embodiment of the present invention;

FIG. 4 illustrates a reading pixel position error measurement operationwhen an oblique line image is formed in a bit-map formation of obtainedimage data in the first embodiment;

FIG. 5 illustrates a measuring window shifting operation in the readingpixel position error measurement in the first embodiment when aplurality of oblique line images are formed in a bit-map formation ofobtained image;

FIG. 6 illustrates image data of pixels defined by the measuring windowincluding pixels of an oblique line image in the first embodiment;

FIG. 7 shows an operation flow chart of the reading pixel position errormeasurement in the first embodiment;

FIGS. 8A, 8B, 8C and 8D show examples of measuring charts which can beused in the reading pixel position error measurement in the firstembodiment;

FIG. 9 shows an elevational sectional view of a general spatialconfiguration of an image reading apparatus in a second embodiment ofthe present invention;

FIG. 10 shows a plan view of the general spatial configuration of theimage reading apparatus in the second embodiment of the presentinvention;

FIG. 11 shows a magnified view of a portion encircled by a circle CL inFIG. 10;

FIG. 12 shows a magnified view of a portion of a measuring pattern shownin FIG. 10;

FIG. 13 shows a block diagram of a system configuration of the imagereading apparatus in the second embodiment of the present invention;

FIG. 14 illustrates a reading pixel position error correcting method inthe second embodiment;

FIG. 15 shows a perspective view of an image reading apparatus in athird embodiment of the present invention;

FIGS. 16, 17, 18, 19, 20, 21 and 22 show various examples of a measuringpattern, which are used in the third embodiment, respectively;

FIG. 23 shows a block diagram of a system configuration of an imagereading apparatus in a fourth embodiment of the present invention;

FIG. 24 shows characteristics of image data along a main scan lineobtained from reading an oblique line image of a measuring pattern;

FIG. 25 illustrates a noise reduction processing operation in an imagereading apparatus in a fifth embodiment of the present invention;

FIG. 26 illustrates a noise reduction processing operation in an imagereading apparatus in a seventh embodiment of the present invention;

FIG. 27 illustrates a noise reduction processing operation in an imagereading apparatus in an eighth embodiment of the present invention;

FIG. 28 illustrates a noise reduction processing operation in an imagereading apparatus in a ninth embodiment of the present invention;

FIGS. 29A, 29B and 29C show operation flowcharts of operations performedby noise reduction units in the ninth, tenth and eleventh embodiments ofthe present invention;

FIGS. 30A and 30B illustrate spatial relationship between an obliqueline image formed in a bit-map formation of obtained image data and ameasuring window set therefor in the present invention;

FIG. 31 illustrates a reading pixel position error measurement in animage reading apparatus in a twelfth embodiment of the presentinvention;

FIG. 32 shows a block diagram of a system configuration of the imagereading apparatus in the twelfth embodiment of the present invention;

FIG. 33 illustrates a partial oblique line image formed in a bit-mapformation of obtained image data;

FIG. 34 illustrates obtained image data values of pixels shown in FIG.33;

FIGS. 35A, 35B, 35C, 35D and 35E illustrate obtained image data valuesof pixels defined by a determining window used in an oblique linedetermining operation in a method performed in the image readingapparatus in the twelfth embodiment of the present invention;

FIGS. 36A, 36B, 36C, 36D and 36E illustrate obtained image data valuesof pixels defined by a determining window used in an oblique linedetermining operation in another method performed in the image readingapparatus in the twelfth embodiment of the present invention;

FIGS. 37A, 37B, 37C and 37D illustrate matching patterns used in anoblique line determining operation in another method performed in theimage reading apparatus in the twelfth embodiment of the presentinvention;

FIG. 38 illustrates a measuring window shifting operation in the readingpixel position error measurement in the twelfth embodiment when aplurality of oblique line images are formed in a bit-map formation ofobtained image data;

FIG. 39 shows an operation flow chart of the reading pixel positionerror measurement (center of gravity calculation) in the twelfthembodiment;

FIG. 40 illustrates spatial relationship between an oblique line imageformed in a bit-map formation of obtained image data and a measuringwindow set therefor in the method shown in FIG. 39;

FIG. 41 illustrates obtained image data values of pixels defined by ameasuring window, and illustrates a center of gravity calculationoperation in the twelfth embodiment;

FIG. 42 illustrates a length and an angle of an oblique line image of ameasuring pattern in the twelfth embodiment;

FIG. 43 shows a block diagram of a system configuration of an imagereading apparatus in a thirteenth embodiment of the present invention;

FIG. 44 shows an operation flowchart of a center of gravity calculationoperation of the image reading apparatus in the thirteenth embodiment;

FIG. 45 illustrates a cubic function convolution method in a readingpixel position error correction in the image reading apparatus in thethirteenth embodiment;

FIG. 46 illustrates an operation flowchart of the cubic functionconvolution method shown in FIG. 45; and

FIGS. 47A and 47B illustrate, for example, images in a bit-map formationof obtained image data, obtained before and after the reading pixelposition error correction illustrated in FIGS. 45 and 46 is performed onthe image data.

DESCRIPTION OF PREFERRED EMBODIMENTS

With reference to the drawings, preferred embodiments of the presentinvention will be described. In the following descriptions of theembodiments, the same reference numerals may be given toparts/components/units which can be treated equivalent to each other,and duplicated descriptions will be appropriately omitted.

1. First Embodiment

1.1 Measurement Principle

FIG. 1 illustrates a measurement principle of a reading pixel positionerror measurement system used in an image reading apparatus in a firstembodiment of the present invention, using an example. An arrow 101indicates a main scan direction. An arrow 102 indicates a sub-scandirection. An original image may be read, scan line by scan line, andthus each scan line of image may be read at the same time. Thus, pixelsforming a scan line are read in parallel. The thus-read scan line ofpixels may be output in series according to the order of the arrow 101.After the thus-read scan line of pixels is thus processed, a readingarea is moved to the subsequent scan line of the original image in adirection indicated by the arrow 102, the scan line of the image isread, and the thus-read scan line of pixels is processed. Thus, asequence of scan lines of the original image are read, and thus-readsequence of scan lines of pixels are processed. That movement of thereading area may be achieved by movement of a mirror for projecting theoriginal image onto a light-to-electricity converting component and anillumination lamp, by movement of the original image, by movement of aunit of a light-to-electricity converting component and its imageformation system, or the like. In this case, each square, shown in thefigure, which is defined by lines in the main scan direction and linesin the sub-scan direction, is treated as a respective pixel. An areaconsisting of those pixels is also treated as a mapped image or as abit-map which is obtained as a result of arranging image data carried byan electric signal which is obtained from the original image as a resultof light-to-electricity converting. In a case where an image readingapparatus outputs thus-read pixels in a real-time manner, the main scandirection 101 and sub-scan direction 102 indicate the pixel order on thetime axis. However, after the pixel data is stored in a memory, anypixel can be accessed, and thus it is possible to treat those pixelswithout regard to the main scan direction and sub-scan direction orderin time axis.

FIG. 1 shows a case where each pixel is such that the size thereof inthe main scan direction is equal to the size thereof in the sub-scandirection. A line image `a` shown in the figure is obtained as a resultof reading a 45° oblique line in a condition where a scanning speed inthe sub-scan direction is fixed to be a predetermined speed. That is,the scanning speed in the sub-scan direction precisely corresponds toclock pulses which are provided for controlling sub-scan directionreading timing. A line image `b` shown in the figure is obtained as aresult of reading a 45° oblique line in a condition where the scanningspeed in the sub-scan direction varies. Each of the line images `a` and`b` is thus formed in the bit-map which is obtained as a result ofarranging image data carried by the electric signal which is obtainedfrom the original 45° oblique line, as shown in the figure. As shown inthe figure, in the case where the original 45° oblique line image isread in the condition where the scanning speed in the sub-scan directionis fixed, the identical 45° oblique line image `a` is formed in thebit-map. In contrast to this, in the case where the original 45° obliqueline is read in the condition where the scanning speed in the sub-scandirection varies, the line image `b` thus formed in the bit-map hasdifferent inclinations according to the thus-varied scanning speeds.

In detail, with regard to the line image `b`, a portion between A-B inthe sub-scan direction 102 is formed in a condition where the scanningspeed in the sub-scan direction is 0. In that condition, although abit-map address in the sub-scan direction advances according to theabove-mentioned clock pulses for controlling the sub-scan directionreading timing, the reading area on the original image does not shift.Thereby, that portion of the line `b` extends in the sub-scan directionas shown in the figure.

A portion between B-C in the sub-scan direction 102 is formed in acondition where the scanning speed in the sub-scan direction is 1/2 thepredetermined speed. In this condition, as the bit-map address advancesaccording to the clock pulses, the reading area on the original imageshifts 1/2 a predetermined distance. Thereby, the angle θ between thisposition of the line `b` and the sub-scan direction is approximately26.57° because tan θ=0.5.

A portion between C-D in the sub-scan direction 102 is formed in acondition where the scanning speed in the sub-scan direction is fixed tobe the predetermined speed. Thereby, the angle of this portion of theline `b` between the sub-scan direction 102 is 45°.

A portion between D-E in the sub-scan direction 102 is formed in acondition where the scanning speed in the sub-scan direction is 1.5times the predetermined speed. In this condition, as the bit-map addressadvances according to the clock pulses, the reading area on the originalimage shifts 1.5 times the predetermined distance. Thereby, the angle θbetween this position of the line `b` and the sub-scan direction isapproximately 56.31° because tan θ=1.5.

Thus, the inclination of the read line image `b` varies depending on thescanning speed in the sub-scan direction. In other words, the movingspeed of a portion of the original 45° oblique line image in the mainscan direction, which portion is being currently read, depends on thescanning speed in the sub-scan direction. By detecting such aphenomenon, reading pixel position errors in a bit-map image due tounevenness of the sub-scan direction scanning speed, vibrations ofmirrors (such as mirrors 23, 24, 25 shown in FIG. 9), a lens (such as alens 26 shown in FIG. 9) and so forth of the image formation system,light-to-electricity converting device (CCD) (such as a device 27 shownin FIG. 9) and so forth of the image reading apparatus are measured.

The above descriptions are based on the assumption that each pixel has asquare shape and the 45° oblique line is used. However, it is notnecessary to be limited to such an assumption. For example, it is notnecessary that each pixel has a square shape. Further, it is notnecessary that such an 45° oblique line is used. For example, it ispossible to apply this measurement principle to image data obtained inan image reading apparatus having a main scan direction resolution of400 dpi and a sub-scan direction resolution of 600 dpi. The relationshipthat a moving speed of a portion of an oblique line image in the mainscan direction, which portion is being currently read, depends on ascanning speed in the sub-scan direction is applied even if the obliqueline to be used is not an oblique line having the 45° angle from thesub-scan direction. Therefore, the reading pixel position errors can bemeasured by using the same measurement principle.

1.2 System Configuration

FIG. 2 shows a block diagram of a basic system configuration of an imagereading apparatus in the first embodiment of the present invention. Thisimage reading apparatus incorporates therein the above-mentioned readingpixel position error measurement system. The reading pixel positionerror measurement system measures reading pixel position errors in areal-time manner in the image reading apparatus. Basically, this imagereading apparatus includes a light-to-electricity converting unit 1, anA/D converting unit (or A/D converter) 2, a shading correcting unit 3, aposition error measurement unit (or circuit) 4, and a control unit 5.

The light-to-electricity converting unit 1 includes, for example, a lineof light-to-electricity converting components, such as a line CCD(Charged-Coupled Device). Thereby, an original image is read and isconverted into an electric signal. The thus-obtained electric signalrepresenting the original image is converted into digital, multilevelimage data through the A/D converting unit 2. The thus-obtained imagedata undergoes a shading correction performed by the shading correctingunit 3. Specifically, shading errors, included in the image data, due toillumination unevenness, lens outskirts light intensity reduction,unevenness in sensitivity of the line of the light-to-electricityconverting components among respective pixels, are compensated for. Thethus-obtained image data is input to the position error measurement unit4 which outputs an error signal 6 representing measurement results.Simultaneously, the position error measurement unit 4 outputs a videosignal 7 representing the read original image. Those respective functionblocks operate under control by the control unit 5. Specifically, thecontrol unit 5 controls timings according to which those function blocksoperate, and sets operation conditions of those function blocks.Thereby, those function blocks operate in a manner in which theoperations of those blocks have appropriate relationship therebetween.The control unit 5 externally sends/receives an appropriate videocontrol signal 8. The video control signal includes a well-knownsynchronization signal for taking synchronization of a video signalwhich carries image data, and a well-known gate signal which indicateseffective portions of the image data. For example, the image readingapparatus is a digital copying machine, the video control signalincludes a clock signal, a main-scan direction synchronization signal, amain-scan direction gate signal and a sub-scan direction gate signal.

The reading pixel position error measurement system according to thepresent invention operates as follows. An oblique line image such as the45° oblique line image mentioned above is read and appropriatelyprocessed through the light-to-electricity converting unit 1, A/Dconverting unit 2 and shading correcting unit 3. Thus-obtained imagedata of the oblique line image is then processed by the position errormeasurement unit 4, and thus reading pixel position errors such as thosedescribed above are measured based on the measurement principledescribed above. Thus-obtained measurement results are output therefromas the above-mentioned error signal 6.

In a case where unity magnification sensors are used, there are noproblems of lens outskirts light intensity reduction due to lenscharacteristics. Therefore, the shading correcting unit such as theshading correcting unit 3 may be omitted. Even in such a case, thepresent invention can be applied.

FIG. 3A shows a block diagram of a basic system configuration of avariant embodiment of the image reading apparatus in the firstembodiment of the present invention. In this variant embodiment, theposition error measurement unit such as the position error measurementunit 4 shown in FIG. 2 is not included. The variant embodiment shown inFIG. 2 includes the light-to-electricity converting unit 1, A/Dconverting unit 2, shading correcting unit 3 and control unit 5. In thisvariant embodiment, an oblique line image such as the 45° oblique lineimage mentioned above is read and appropriately processed through thelight-to-electricity converting unit 1, A/D converting unit 2 andshading correcting unit 3. Thus-obtained image data of the oblique lineimage is then stored in a memory 4B, and processed by a computer 4A,shown in FIG. 3A. Thus, reading pixel position errors such as thosedescribed above are measured based on the measurement principledescribed above through the computer 4A. The computer 4A may comprise ageneral-purpose computer such as a personal computer shown in FIG. 3B.The general-purpose computer is specifically configured by software(stored in any information storage medium such as a floppy disk shown inFIG. 3B) executed thereby to carry out the above-mentioned reading pixelposition error measurement. In this method, it is possible that theimage data is temporarily stored in a magneto-optical disc or the like,and is read out therefrom when it is necessary. Further, it is alsopossible to permanently store the image data in such an informationstorage medium.

1.3 Position Error Measuring Process

FIG. 4 illustrates a position error measuring process using a line image`a` in bit-map format image data which has been obtained through thelight-to-electricity converting unit 1, A/D converting unit 2 andshading correcting unit 3 shown in FIGS. 2 and 3. The bit-map shown inFIG. 4 is similar to the bit-map shown in FIG. 1. A measuring window W₁has a size of 11 pixels by 3 pixels as shown in the figure. A positionof a portion of the line image `a` within the measuring window W₁ in themain scan direction with respect to the measuring window W₁ is obtained.For this purpose, the center of gravity of the image data of the pixelsdefined by the measuring window W₁ in the main scan direction iscalculated as will be described later. The thus-calculated center ofgravity in the main scan direction may indicate the center of theportion of the line image `a` defined by the measuring window W₁. Thiscenter-of-gravity calculation is performed repeatedly after the positionof the measuring window W₁ is moved to the position W₂, the position W₃,. . . , as shown in the figure, respectively. As shown in FIG. 4, themeasuring window moves in a direction which is 45° from the main scandirection 101 and also 45° from the sub-scan direction 102 in thecondition where each pixel has a square shape, because the measuringwindow moves one pixel by one pixel in the main scan direction, andsimultaneously, one pixel by one pixel in the sub-scan direction.Therefore, the position of the center of gravity of the image data inthe measuring window in the main scan direction shifts one pixel by onepixel in the main scan direction as the measuring window moves asmentioned above unless the positions of pixels of the line image `a`shifts due to undesirable causes. If the center of gravity of the pixelsin the measuring window does not shift one pixel by one pixel in themain scan direction as the measuring window moves one pixel by one pixelin each of the main scan direction and sub-scan directionsimultaneously, there should be some undesirable causes therefor. Such adifference is a reading pixel position error which should be measured inthe reading pixel position error measuring process according to thepresent invention. In other words, by determining whether or not thecenter of gravity of the pixels in the measuring window shifts one pixelby one pixel in the main scan direction as the measuring window movesone pixel by one pixel in each of the main scan direction and sub-scandirection simultaneously, it can be determined whether the line imageformed in the bit-map from the read image data is such as the line image`a` shown in FIG. 1 or is such as the line image `b` shown in FIG. 1. Inthe case where the line image `a` is formed from the read image data,the center of gravity of the pixels in the measuring window shifts onepixel by one pixel in the main scan direction as the measuring windowmoves one pixel by one pixel in each of the main scan direction andsub-scan direction simultaneously. Then, it can be determined that thereis no reading pixel position errors. Otherwise, it can be determinedthat there are some reading pixel position errors. How far apart thecalculated center of gravity is from a reference position of the centerof gravity in the case where the center of gravity of the pixels in themeasuring window shifts one pixel by one pixel in the main scandirection as the measuring window moves one pixel by one pixel in eachof the main scan direction and sub-scan direction simultaneouslyindicates the degree of the reading pixel position errors. Theabove-mentioned reference position of the center gravity is moved onepixel in the main scan direction each time the measuring window movesone pixel in the main scan direction and one pixel in the sub-scandirection simultaneously. In a case where it is determined that a maincause of the reading pixel position error is unevenness of the sub-scandirection scanning speed, it is easy to appropriately convert the dataof the reading pixel position error into data of sub-scan directionscanning speed error. Thereby, it is possible to correct the sub-scandirection scanning speed error.

When the center of gravity of the image data in the measuring window iscalculated, image data of many pixels including pixels surrounding theline image `a` is also used. That image data may include various noisessuch as noises inherent in the CCD and so forth. The center of theportion of the line image `a` is obtained by calculating the center ofgravity of the image data in the measuring window according to thepresent invention as mentioned above. By this method, in the process ofcalculating the center of gravity of the image data in the measuringwindow, effect of such noises can be reduced, because the image data ofmany pixels including pixels surrounding the oblique line image is used,and those noises generally appear at random throughout the entire areaof the measuring window, and may thus be canceled out by each other.Thus, the center of the portion of the line image `a` can be obtained ina high S/N (signal to noise) ratio condition. Ordinarily, when thenumber of pixels defined by the measuring window is increased, the S/Nratio is higher. It is preferable that the measuring window is larger inthe main direction because the data to be used is the center of gravityof the image data in the measuring window in the main scan direction. Itis possible to perform the reading pixel position error measurementusing a measuring window having a length in the sub-scan direction ofone pixel.

FIG. 5 illustrates a position error measuring process in which aplurality of parallel oblique line images a₁, a₂ and a₃, . . . , such asthe oblique line image `a` shown in FIG. 4, are used for measuringreading pixel position errors such as those described above. In thiscase, similar to the example shown in FIG. 4, the measuring window ismoved, repeatedly, one pixel by one pixel in the main scan direction,and simultaneously one pixel by one pixel in the sub-scan direction,into the positions W₁, W₂, W₃, . . . , as shown in FIG. 5. Then, afterthe number of the moving operations reaches n-1, and thus the measuringwindow is positioned at the measuring window W_(n), the measuring windowis moved into the position of the measuring window W_(n+1) shown in FIG.5. The distance, in the main scan direction, between each adjacent pairof the oblique line images a₁, a₂, a₃, . . . is predetermined when themeasuring chart or test chart (having those plurality of oblique lineimages drawn thereon) is produced. This distance is a distance which themeasuring window moves in the direction reverse of the main scandirection, after moving, one pixel by one pixel in each of the main scandirection and sub-scan direction simultaneously, n-1 times. After movingthat distance in the direction reverse of the main direction andsimultaneously one pixel in the sub-scan direction, into the measuringwindow W_(n+1) the measuring window is moved, one pixel by one pixel ineach of the main scan direction and sub-scan direction simultaneously,into the positions W_(n+2) W_(n+3), . . . By predetermining theabove-mentioned distance in the main direction between each adjacentpair of the oblique line images to be an integer number of times of thesize of each pixel, it is easy to set the above-mentioned referenceposition of the center of gravity for the oblique line image after themeasuring window moves in the direction reverse to the main scandirection. After each time the measuring window moves, one pixel by onepixel in each of the main scan direction and sub-scan directionsimultaneously, the center of gravity of the pixels in the measuringwindow is calculated and thus reading pixel position errors are detectedas described above. Each time the measuring window is moved in thedirection reverse to the main scan direction, the above-mentionedreference position of the center of gravity, which is compared with thecalculated center of gravity in the reading pixel position errormeasurement, should be corrected for the above-mentioned distancebetween each adjacent pair of the parallel oblique line images. Bypredetermining the distance to be an integer number of times of the sizeof each pixel, that correction of the reference position of the centerof gravity can be easily performed, and also inputting of the referenceposition correction amount to the measurement system can be easilyperformed.

In the above-described examples, the measuring window is moved one pixelby one pixel. However, in a case where a frequency band of causes ofreading pixel position errors such as apparatus vibration is low, forexample, it is possible that the measuring window is moved two (or more)pixels by two (or more) pixels in each of the main scan direction andsub-scan direction simultaneously. Thereby, it is possible to shorten atime required for the reading pixel position error measurement.

By using a plurality of parallel oblique line images such as those shownin FIG. 5 in the reading pixel position error measurement according tothe present invention, it is possible to perform the measurementthroughout an original image reading area of the image reading apparatuseven if the original image reading area is long in the sub-scandirection and short in the main scan direction. Further, by using theplurality of parallel oblique line images in the measurement, it ispossible to use in the measurement the measuring chart or pattern whichis long in the sub-scan direction and short in the main scan direction.By positioning such a long and narrow measuring chart along the sub-scandirection at various different positions in the main scan direction, itis possible to perform the reading pixel position error measurement forvarious positions separately.

In the above-described measuring method, it is not necessary to makethose oblique line images of the measuring chart be finer in order toimprove the resolution of the reading pixel position error measurement.In fact, for example, the system disclosed in the above-mentionedJapanese Laid-Open Patent Application No.6-297758, even-pitch pattern isused as a reference measuring pattern. In such case, some main scanlines do not scan the pattern because the pattern includes parallellines which are in parallel to the main scan direction, and apart fromeach other in the sub-scan direction. In particular, in a case where aspatial frequency of the measuring pattern differs from a spatialfrequency of main scan lines, the frequency deviation may cause `moire`which may degrade the accuracy of the reading pixel position errormeasurement. In order to prevent such a problem, it is necessary to makethe pattern finer in comparison to the main scan line resolution. Such aproblem can be solved by using the above-described oblique linemeasuring pattern in the present invention. In fact, by using themeasuring pattern such as that shown in FIG. 5, each of all the mainscan lines scans a portion of the measuring pattern. Therefore, it ispossible to use those oblique line images, each of which is wide, suchthat those line images may not be adversely affected by the MTF of theapparatus. By thus using the wide line pattern, the measuring windowshould be enlarged. Thereby, it is possible to improve accuracy of thereading pixel position error measurement. In a case where themeasurement is performed in a real-time manner, the width of each lineof the oblique line pattern of the measuring chart may be determined inconsideration of a balance between the data processing rate, the datastorage size of buffers, and the circuit scale of the measurementsystem.

In the above-described examples, the center of an oblique line image isobtained by calculating the center of gravity of the pixels in themeasuring window. However, it is also possible to use a wider line imageand the position of an edge of the line image is obtained in somewell-known manner. Also in such a method, the reading pixel positionerror measurement can be performed similarly.

Further, in the above-described methods in the present invention usingone or a plurality of parallel oblique line images, a portion(s) of theoblique line images scanned by each main scan line is (are) identicalamong the successive main scan lines when ignoring position shift alongthe main scan direction. Therefore, the state of the portion of theoblique line image defined by the measuring window is alwaysapproximately fixed as shown in FIGS. 4 and 5. Thereby, theabove-mentioned `moire` problem, which cannot be avoided in the methodusing the test chart of the even-pitch lines arranged in the sub-scandirection in the related art described above, can be avoided in thepresent invention. Thus, it is possible to perform a high-accuracyreading pixel position error measurement.

1.4 Calculation of the Center of Gravity from Image Data in the Window

FIG. 6 shows a positional relationship between the pixels defined by themeasuring window and the oblique line image `a`. In the figure, theimage data of the pixel is indicated in each pixel. The image data isthe image data obtained as a result of reading the oblique line image`a`. The image data of each pixel is 8-bit digital data, and may berepresented by a decimal-system value of 0 to 255. The image data ofeach pixel shown in the figure is indicated by the decimal-system value.

When calculating the center of gravity of the pixels in the measuringwindow, the totals of the image data of pixels is obtained for eachcolumn. The totals of the image data of pixels obtained for thosecolumns, from the right-hand, h₀, h₁, h₂, . . . , h₁₀ shown in FIG. 6are referred to as c₀, c₁, c₂, . . . , c₁₀, respectively. Those totalsare 14, 37, 150, 345, 562, 590, 427, 202, 50, 18 and 13, respectively,as shown in the figure. Assuming that the main scan direction coordinatevalues of the centers of those pixels are, leftwardly in FIG. 6, 0 to10, respectively,

    c.sub.0 (m-0)+c.sub.1 (m-1)+c.sub.2 (m-2)+. . . +c.sub.10 (m-10)=0(1),

where the coordinate value of the center of gravity in the main scandirection is `m`, because the overall moment about the center of gravity`m` is 0. Thus, the center of gravity in the main scan direction of (theimage data of) the pixels in the measuring window is calculated. Afterapplying the above-mentioned specific values of the image data columntotals c₀, c₁, c₂, . . . , c₁₀ and solving the above-mentioned equation(1), the center of gravity:

m=4.667.

is obtained.

When obtaining the center of gravity, a preceding calculation such as aninterpolation operation is not needed. Therefore, this method isadvantageous for simplifying the calculation process, and achieving ahigh-speed calculation. Instead, it is also possible to obtain theposition of the oblique line image in another manner. That is, aninterpolation operation is performed on the series of the image datacolumn totals c₀, c₁, c₂, . . . , c₁₀, and thus a data series in apredetermined resolution is obtained. From the thus-obtained dataseries, the position at which the peak value is present may be obtained.

1.5 Relationship between Shift of the Portion of the Oblique Line Imagein the Measuring Window and Sub-Scan Direction Reading Pixel PositionError

In the above-described methods in the first embodiment of the presentinvention, a sub-scan direction reading pixel position error is measuredby measuring shift of the portion of the oblique line image of the readimage data of the pixels in the main scan direction in the measuringwindow. In the case described above where the pixel size is the same inthe main scan direction and in the sub-scan direction, and the 45°oblique line image is used as the measuring chart, as is obvious fromthe above descriptions, a measured shift of the portion of the obliqueline image of the read image data of the pixels in the main scandirection in the measuring window represents a sub-scan directionreading pixel position error. In another case where the pixel size isnot the same in the main scan direction and in the sub-scan direction,and/or the oblique line image of the measuring chart is not a 45°oblique line image, an appropriate conversion is performed for obtainingthe sub-scan direction reading pixel position error.

1.6 Measuring Operation Procedure

FIG. 7 shows an operation flowchart of the reading pixel position errormeasurement in the first embodiment of the present invention. First, awindow pointer (W. P.) which indicates the position of the measuringwindow is set in a step S701 (hereinafter, the term `step` beingomitted). Then, in S702, the image data of the pixels in the measuringwindow at the position indicated by W. P. is obtained. In 703, the totalV of the obtained image data is calculated. In 704, it is determinedwhether or not Va>V>Vb, where Va and Vb are predetermined thresholdvalues, respectively. When it is determined that the value V is a valuebetween the predetermined values Va and Vb in S704, the above-describedcalculation of the center of gravity using that image data is performedin S705. In S706, the main scan direction positional deviation betweenthe calculated center of gravity and the above-mentioned referenceposition of the center of gravity is calculated. Then, a next W. P. isset in S707, and the operation returns to S702. Then, theabove-described operation is repeated.

If it is determined in S704 that the image data total V is not betweenVa and Vb, the current operation is terminated. The reason therefor willnow be described. There may be a case where there are no pixels in thecurrent measuring window representing any portion of the oblique lineimage due to an erroneous setting of the W. P. or other causes. In sucha case, it is useless to further process that image data. Therefore, thecurrent operation is terminated in that case. There may be a case wherethe measuring window has completed passing through all of those obliquelines provided on the measuring chart. In such a case, by performingsuch a determination as S704, it is possible to automatically terminatethe measuring operation.

1.7. Measuring Chart

FIGS. 8A, 8B, 8C and 8D show examples of the above-mentioned measuringchart. In each figure, the outline rectangle indicates the outline ofthe measuring chart, and also, when the measuring chart is set on theimage reading apparatus, indicates the outline of the entirety of theoriginal image reading area (such as a contact glass or platen glass onwhich a paper sheet, on which an original image is provided, is placedand the apparatus reads the original image through the glass) of theimage reading apparatus. In the example of FIG. 8A, two parallel obliqueline images L₁ and L₂ are provided on the measuring chart. A broken lineL_(H) is not actually provided on the measuring chart and indicatesthat, in the figure, the bottom of the line L₁ is lower than the top ofthe line L₂. Thereby in an original image scanning operation of theimage reading apparatus using the above-mentioned line CCD as thereading carriage which extends horizontally (in the main scan direction)in the figure and moves vertically (sub-scan direction) in parallel,first the line CCD scans the line L₁, then scans both the line L₁ and L₂at the same time, and then scans the line L₂. Unless the bottom end ofthe line L₁ is lower than the top end of the line L₂, when the measuringwindow moves from a portion in proximity of but not the exact edge ofthe bottom end, of the line L₁, to a portion in proximity of but not theexact edge of the top end of the line L₂, it is possible that themeasuring window includes neither pixels of the bottom exact edge of theline L₁ nor pixels of the top exact edge of the line L₂. If themeasuring window includes such pixels forming line exact edges in thelongitudinal axis of the oblique lines, the calculation of the center ofgravity may not be performed correctly for obtaining the position of theline image, because those pixels of line exact edges may adverselyaffect the calculation. In order to prevent such a problem, it is neededthat the measuring window moves from one oblique line when the measuringwindow is located in a middle portion of the oblique line, and, thethus-moving measuring window reaches to a middle portion of a subsequentoblique line, as shown in FIG. 5. When using the measuring chart shownin FIG. 8A, because the top of the line L₁ is positioned at the top ofthe original image reading area of the image reading apparatus, thebottom of the line L₂ is positioned at the bottom of that original imagereading area, the right-hand ends of the lines L₁ and L₂ are positionedat the right-hand end of that original image reading area and theleft-hand end of the line L₁ is positioned at the left-hand end of thatoriginal image reading area, the reading pixel position errormeasurement can be performed throughout the original image reading area.

In the example of FIG. 8B, as shown in the figure, finer paralleloblique line images L are provided throughout the measuring chart. Byusing this measuring chart, the reading pixel position error measurementcan be performed for any position in the original image reading area ofthe image reading apparatus. In this case, by causing the measuringwindow to move so as to define only one oblique line image of thoseparallel oblique line images, it is possible that the reading pixelposition error measurement is performed similar to that using themeasuring chart shown in FIG. 8A. In the method using the chart shown inFIG. 8B, because those fine line images are provided throughout themeasuring chart, it may not be possible to insert other patterns thereinfor performing other kinds of reading image evaluation. In contrast tothis, in the method using the measuring chart shown in FIG. 8A, it ispossible to insert other patterns therein for performing other kinds ofreading image evaluation.

The example shown in FIG. 8C is used for the reading pixel positionerror measurement performed only for the center of the original imagereading area of the image reading apparatus. The example shown in FIG.8D is used for the reading pixel position error measurement performedonly for the center and the right and left sides of the original imagereading area of the image reading apparatus. In the latter two examples,shown in FIGS. 8C-8D, the fine parallel oblique line images are veryshort in comparison to the example shown in FIG. 8B. Those examples maybe achieved, not only by producing the charts as shown in the figures,but also by producing a strip (strips) by cutting out only a portion onwhich the line images are provided from the original chart, and adheringthe strip (strips) onto another chart in the related art. It is alsopossible to treat the strip (strips) itself (themselves) as themeasuring chart (charts).

2. Second Embodiment

2.1 General Configuration of the Apparatus

FIG. 9 shows an elevational sectional view of a general configuration ofan image reading apparatus in a second embodiment of the presentinvention. On the top of an enclosure 28, a contact glass 21 isprovided, which contact glass 21 will have a paper sheet, on which anoriginal image is provided (hereinafter, such an object as that papersheet being referred to as an `original image object`), placed thereon.The contact glass 21 is supported by the enclosure 28. The originalimage object is placed on the contact glass 21 in a position where theoriginal image provided thereon faces the contact glass 21. Anillumination light source 22 emits light onto the original image throughthe contact glass 21, and light reflected by the original image isprojected onto the light reception surface of the light-to-electricityconverting component of the light-to-electricity converting device 27having the line of light-to-electricity components, through a firstmirror 23, a second mirror 24, a third mirror 25 and an image forminglens 26. Thus the original image of the original image object isconverted into an electric signal, which undergoes predeterminedprocessing and is output from the image reading apparatus.

The illumination light source 22 and first mirror 23 are mounted on afirst carriage (not shown in the figure) which moves, as a result ofbeing driven by a driving device (not shown in the figure), in acondition where the distance from the contact glass 21 is fixed, forreading the original image one main scan line by one main scan line. Thesecond mirror 24 and third mirror 25 are mounted on a second carriage(not shown in the figure) which moves similarly to the movement of thefirst carriage, but at a speed half the speed at which the firstcarriage moves. Thus, the original image on the contact glass 21 isscanned and is read one main scan line by one main scan line.

FIG. 10 shows a plan view of the image reading apparatus shown in FIG.9. As shown in the figure, the contact glass 21 is provided at the topof the enclosure 28. A reference tone plate 29 is provided at a side ofthe contact glass 21. The reference tone plate 29 is used for providingreference data which is read through the light-to-electricity convertingunit, and then is used for shading correction, such as that mentionedabove, which shading correction is performed in the image readingapparatus. Further, a measuring chart 30, having a measuring patternprovided thereon, such as that described above, being used for the readimage data pixel position error measurement such as that described aboveperformed in the image reading apparatus, is provided at a side of thecontact glass 21. The reference tone plate 29 and measuring chart 30 areprovided in a manner such that they can be adequately read by thelight-to-electricity converting device 27 which is provided inside theenclosure 28. Especially, because the measuring chart 30 is read throughthe light-to-electricity converting device 27 together with an originalimage object which may be placed on the middle of the contact glass 21,it is necessary that those images corresponding to the measuring chartas well as the original image object are adequately formed on thelight-to-electricity element components. For this purpose, the measuringchart 30 is provided on the surface of the contact glass 21, whichsurface is the top surface thereof, and the original image object willalso be placed thereon.

FIG. 11 shows magnified details of the portion shown in FIG. 10 andencircled by the circle CL. As shown in the figure, the reference toneplate 29 is extended so long in the direction reverse of the main scandirection that those pixels of the light-to-electricity convertingcomponent (such as the line CCD as mentioned above, extending in themain scan direction throughout the contact glass 21) which are used forreading the measuring chart can also be used for reading the referencetone plate 29. Thereby, the shading correction can be performed also onthe image data obtained from the measuring chart 30.

FIG. 12 shows a partial magnified bottom view of the measuring chart 30.As shown in the figure, the measuring chart 30 has black oblique lines Land a white background. The pattern shown in FIG. 12 is similar to thatdescribed in the above descriptions of the first embodiment of thepresent invention. This measuring pattern is such that many obliquelines, in parallel to each other, are arranged in the sub-scan direction(horizontal direction in FIG. 12). A distance between each pair ofadjacent oblique lines is even, and each oblique line is oblique by 45°from the sub-scan direction, as shown in the figure. In the secondembodiment of the present invention, different from those shown in FIGS.8A to 8D, the measuring chart 30 is provided at the side of the contactglass 21, and thus is read, simultaneously with the original imageobject being read, and used for the reading pixel position errormeasurement.

2.2 System Configuration

FIG. 13 shows a block diagram of the system configuration of the imagereading apparatus in the second embodiment of the present invention. Theimage reading apparatus in the second embodiment additionally includes aposition error correcting unit 10 in comparison to the systemconfiguration of the first embodiment shown in FIG. 1. Also in thissecond embodiment, it is also possible that the system configurationshown in FIG. 3A, which is the variant embodiment of the firstembodiment and was described above, is used instead of the systemconfiguration shown in FIG. 13. In this case, the general-purposecomputer 4A (such as the personal computer shown in FIG. 3B) isspecifically configured by software (stored in an any informationstorage medium such as a floppy disk shown in FIG. 3B) executed therebyto carry out not only the above-mentioned reading pixel position errormeasurement but also the position error correction operation performedby the position error correcting unit 10 when using the systemconfiguration shown in FIG. 13, which processing will be describedlater. In the second embodiment, the error signal 6 from the positionerror measurement unit 4 is provided to the position error correctingunit 10. In the system configuration of the second embodiment, imagedata, which has undergone shading correction through the shadingcorrecting unit 3, is provided to the position error measurement unit 4.The position error measurement unit 4 measures reading pixel positionerrors, one main scan line by one main scan line, arranged in thesub-scan line direction. The reading pixel position errors are measuredas errors between an erroneous main scan line of image data and adjacentmain scan lines of image data. The thus-measured errors are, as theerror signal 6, provided to the position error correcting unit 10. Theposition error correcting unit 10 receives the error signal 6 togetherwith the image data (video signal). According to the error signal 6, theposition error correcting unit 10 determines a predetermined number ofmain scan lines of image data which are used for performing readingpixel position error correction, and stores that number of main scanlines of image data in a memory included in the position errorcorrecting unit 10. That number of main scan lines of image data includethose main scan lines of image data which are adjacent to the erroneousmain scan line of image data. Further, the position error correctingunit 10 also stores the error signals 6 which indicates the readingpixel position errors between the erroneous main scan line of image dataand those adjacent main scan lines of image data. The position errorcorrecting unit 10 uses the thus-stored data, and thus uses thoseadjacent main scan lines of image data and the error data indicated bythat error signal. Thereby, the position error correcting unit 10calculates correct image data values of the erroneous main scan line ofimage data through an interpolation method using actually read imagevalues. The video data, including the thus-corrected image data, isoutput from the position error correcting unit 10, one main scan line byone main scan line. After performing the reading pixel position errorcorrection on that erroneous main scan line of image data, main scanlines of image data necessary for another erroneous main scan line ofimage data are then stored and the image data which has been used maythus be overwritten by the new image data in the above-mentioned memory.The above-mentioned operation is repeated for the main scan lines ofimage data, respectively, in the sub-scan direction. Thereby, theentirety of the page of the original image object is processed, and isoutput from the position error correcting unit 10. Each function blockshown in FIG. 13 is controlled by the control unit 5 so that operationtimings are controlled and operation conditions are set, appropriately.Thereby, those function blocks operate with an appropriate mutualoperation relationship.

2.3 Position Error Measuring Process

The position error measuring process performed by the position errormeasurement unit 4 in the second embodiment is substantially identicalto that of the position error measurement unit 4 in the firstembodiment.

2.4 Read Image Data Position Deviation due to Reading Pixel PositionError

FIG. 14 illustrates the reading pixel position error correctionoperation. The vertical axis of the graph shown in FIG. 14 representsimage data values of image data which underwent the shading correctionby the shading correcting unit 3 shown in FIG. 13. The image data valuesare 8-bit digital values, and thus have decimal-system values of 0 to255. The horizontal axis of this graph represents sub-scan directionposition or main scan lines which are arranged in the sub-scandirection. Those positions along the horizontal axis, to which positiveintegers are allocated, represent main scan lines which correspond toline reading timing signals produced from dividing an oscillationfrequency of a crystal oscillator included in the above-mentionedcontrol unit 5. Because stability of the oscillation frequency from thecrystal oscillator is very high, those positions to which the integersare allocated, represent correct positions of main scan lines. Further,the distance between each pair of adjacent positions of those positionscorresponds to a distance between adjacent dots of 400 dpi which is thereading resolution of the image reading apparatus.

In order to reduce a required memory storage capacity to a minimum one,reading pixel position errors are corrected in a real-time manner inthis example. Further, it is preferable that a circuit scale requiredfor this operation be miniaturized and thus that cost reduction beperformed. For those purposes, it is effective to simplify a calculationrequired for the reading pixel position error correcting operation.Therefore, a resolution of this operation is set to be 1/16 dots. Thus,a memory is provided in which image data values can be stored forsub-scan direction positions (represented by the horizontal axis of thegraph shown in FIG. 14) which are obtained as a result of dividing by 16a space between each pair of adjacent positions to which the integersare allocated.

The example shown in FIG. 14 is based on an assumption that, at thehorizontal axis position of `0`, the position defined by the controlunit 5 is coincident with the position of the actually reading pixelposition. There are various possible causes of reading pixel positionerrors. Among them, reading carriage (such as the above-mentioned firstcarriage) speed variation is a likely cause. The example shown in FIG.14 is based on an assumption that the speed of the above-mentioned firstcarriage is 1/16 faster, that is, approximately 6% faster, than apredetermined speed. In a case where the first carriage moves at thepredetermined speed, a pixel at the position of `1` at the horizontalaxis of FIG. 14 is read. However, because the first carriage movesfaster than the predetermined speed, as mentioned above, actually, apixel at a position `b` ahead by 1/16 dot from the position of `1` isactually read. In FIG. 14, image data values of pixels when those pixelsare read at correct positions which are defined by the control unit 5are represented by larger circles while image data values of pixels whenthose pixels are read at erroneous positions due to the above-mentionedfirst carriage speed error are represented by smaller circles. Thereading pixel position error measurement is performed in a manner inwhich a read position at a preceding reading operation is used as areference, and thereby a deviation of a read position at a currentreading operation is measured, for each main scan line readingoperation. Therefore, at the reading operation of the sub-scan linedirection position `1`, the value `1/16` (dot) is measured as a readingpixel position error. This error data is output from the position errormeasurement unit 4 shown in FIG. 13 together with the image data valueof a currently read pixel, to the position error correcting unit 10. Theabove-described calculation of the center of gravity in the readingpixel position error measurement has an accuracy higher than the value1/16. However, in this example, the calculation result is rounded tohave the resolution of 1/16 in the position error correcting unit 10.

The first carriage speed is fixed to be one which is faster by 1/16 thanthe predetermined speed. Thereby, a subsequent reading pixel positionerror, which is measured from a reading pixel position at the precedingreading operation as a reference, is the same `1/16`. However, theoverall reading pixel position error at this time, when the sub-scandirection position `2` is used as a reference, is `2/16` because thereading pixel position error of `1/16` is already present in thepreceding reading operation as mentioned above. The reading pixelposition in the second reading operation is `c` which is ahead by `2/16`from the correct position `2` as shown in FIG. 14. Similarly, in thesubsequent third reading operation, the overall reading pixel positionerror is `3/16` which is a difference between the correct position `3`and the actual erroneous position of `d`. Similarly, subsequently, thepixels at the positions `e`, `f`, `g`, . . . are actually read,respectively. Thus, a position of each pixel actually read is defined byaccumulating respective reading pixel position errors, the error in eachmain scan line reading operation being `1/16` as mentioned above. Thethus actually read pixel image data values are stored at addressescorresponding to the actually read positions in the resolution of 1/16,respectively, in the above-mentioned memory. Those actually read pixelimage data values are represented by the small circles at thosepositions, `a`, `b`, `c`, `d`, `e`, `f` and `g`, shown in FIG. 14.

2.5 Read Pixel Image Data Correction

From those stored actually read pixel image values, which includereading pixel position errors, the correct pixel image values, which arerepresented by the larger circles at the positions, `0`, `1`, `2`, `3`,`4`, `5`, `6` and `7`, are estimated (calculated) by performing aninterpolation operation. For example, when the correct image data at theposition `2` is estimated, `a cubic function convolution method` may beapplied using the two preceding read pixel image data values at thepositions of `a` and `b`, and also the two subsequent read pixel imagedata values at the positions of `c` and `d`. (With regard to the cubicfunction convolution method, see U.S. Pat. No. 4,827,433 of KouichKamon, column 5, lines 11-30, for example.) According to this method,each of the correct pixel image data values is estimated using the twopreceding read pixel image data values and also the two subsequent readpixel image data values. The interpolation method to be used in the readpixel data correction is not limited to the cubic function convolutionmethod. Other various interpolations can be used for this purpose.Furthermore, the number of read pixel image data values to be used forthe interpolation operation can be changed appropriately.

2.6 Others

In this second embodiment, the reading pixel position error measuringmeans, which is used in the first embodiment, is used. However, thereading pixel position error measuring means to be used in the secondembodiment is not limited thereto. Another means, such as that describedabove in the Description of the Related Art, can also be used for thispurpose. Further, in a case where the image reading apparatus is animage reading apparatus in which the cause of reading pixel positionerrors is specified to be undesirable variation of a reading carriage(such as the above-mentioned first carriage) moving speed, such as thatmentioned above, reading pixel position errors can be obtained fromusing a linear encoder or the like to be provided to the readingcarriage for measuring a moving speed and/or a position of the readingcarriage. Thereby, such undesirable variation of the reading carriagemoving speed can be obtained, which variation represents reading pixelposition error in this case. Alternatively, it is also possible toprovide an acceleration pickup to the reading carriage, and use anacceleration output therefrom for measuring a moving speed and/or aposition of the reading carriage. Thereby, such undesirable variation ofthe reading carriage moving speed can be obtained, which variationrepresents reading pixel position error in this case. Further, in a casewhere the image reading apparatus is an image reading apparatus whereinoptical components for reading an original image are fixed and insteadan original image object is moved for reading the original image, onemain scan line by one main scan line, in the sub-scan direction, and tworollers are provided for having the original image object therebetweenand thus driving the original image object, a rotary encoder or the likeis provided to a driving axis of one of the two rollers. Thereby, amoving speed and/or a position of the original image object can bemeasured. Thereby, a moving speed and/or a position of the readingoptical components, relative to the original image, can be obtained, andthus reading pixel position errors can be obtained.

In the descriptions of the second embodiment of the present invention,the read pixel image data correction is performed in real time using thememory (buffer memory). Alternatively, it is also possible to use a pagememory and store a page of read pixel image data values of an originalimage and reading pixel position error data. Then, a similar operationis performed on the thus-stored values/data, and thus corrected imagedata values are output. Further, it is possible to configure the imagereading apparatus so that the apparatus can output obtained readingpixel position error data which may be used for operation maintenanceand/or default diagnosis of the apparatus.

3. Third Embodiment

3.1 Apparatus Configuration, and So Forth

An image reading apparatus in a third embodiment of the presentinvention has a general mechanical configuration, a systemconfiguration, a position error measuring system and a read pixel errorcorrecting system which are equivalent to those described above for thesecond embodiment in items 2.1, 2.2, 2.3, 2.4 and 2.5. Therefore,descriptions thereof will be omitted.

3.2 Measuring Pattern

The measuring pattern 30P which is the pattern provided on the measuringchart 30, described in the above-mentioned item 2.1, shown in FIG. 12,is used for example. In this example, the measuring pattern 30P isprovided to extend in the sub-scan direction.

3.2.1 Scale Ruler of General Copying Machine

In a general copying machine, which is one example of the image readingapparatus according to the present invention, a scale ruler 61 isprovided at a side of the contact glass 21, as shown in FIG. 15. Thescale ruler 61 extends in the sub-scan direction, and is used for a userto determine a position at which an original paper sheet (original imageobject) 21a is placed on the contact glass 21. The measuring pattern 30Pis provided beneath the scale ruler 61.

3.2.1.1 First Method of Providing Measuring Pattern

A first method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, the measuring pattern 30P suchas an even-pitch oblique line pattern such as that shown in FIG. 12 isused. As shown in FIG. 16, a sheet member 62 is used for providing themeasuring pattern 30P thereon. The measuring pattern 30P such as theeven-pitch oblique line pattern is provided on a surface of the sheetmember 62. The even-pitch oblique line pattern is such that each line ofa plurality of in-parallel and even-pitch arranged lines is oblique tothe main scan direction and also oblique to the sub-scan direction afterbeing provided to the image reading apparatus. This pattern includes awhite background and those plurality of black oblique lines as shown inFIG. 16. Only one end region in a longitudinal direction, such as an endregion (dotted area) 62a shown in FIG. 16, of the sheet member 62 isadhered or fixed using another method directly onto the top surface 21aof the contact glass 21, on which surface an original image object isdirectly placed, or onto the bottom surface 61a of the scale ruler 61,which surface comes into contact with the contact glass 21. The scaleruler 61 is fixed to the image reading apparatus and thus the measuringpattern comes into contact with the top surface 21a of the contact glass21. The scale ruler 61 is also used for pressing down and holding thecontact glass 21 onto the image reading apparatus. The region of thesheet member 62 other than the end region 62a comes into contact withthe contact glass 21 as a result of being pressed down by the scaleruler 61. Thereby, the measuring pattern such as the even-pitch obliqueline pattern of the sheet member 62 is placed in parallel with the topsurface 21a of the contact glass 21, and at the side area of the contactglass 21 beneath the scale ruler 61.

By such an arrangement, because only the end region 62a of the sheetmember 62 is fixed onto the contact glass or the scale ruler 61, it ispossible that the other region of the sheet member 62 can lie on the topsurface 21a of the contact glass 21 and thus have a shape identical tothe shape of the top surface 21a (which can be treated as a planesurface) of the contact glass 21. Thereby, it is possible to cause thesheet member 62 to be shaped to be an identical plane surface. Thereby,even if a flexible material such as a paper sheet is used as the sheetmember 62, the surface of the sheet member 62 can be prevented frombecoming uneven, rugged or partially bent. Thus, it is possible toperform a high-accuracy, wide-frequency-range reading pixel positionerror measurement, and thereby to perform high-accuracy pixel image datacorrection. As a result, it is possible to obtain an image having lessdistortion due to pixel position errors. When the measuring pattern suchas the even-pitch oblique line pattern provided on the sheet member 62is degraded as a result of being used for a long time, only the sheetmember 62 is replaced with a new one. Thus, measuring-pattern renewalcan be simply performed.

3.2.1.2 Second Method of Providing Measuring Pattern

A second method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, an even-pitch oblique linepattern such as that shown in FIG. 12 is used as the measuring pattern30P. As shown in FIG. 17, a hard-material member 63 is used forproviding the measuring pattern 30P thereon. The measuring pattern 30Psuch as the even-pitch oblique line pattern is provided on a surface ofthe hard-material member 63. The even-pitch oblique line pattern is suchthat each line of a plurality of in-parallel and even-pitch arrangedlines is oblique to the main scan direction and also oblique to thesub-scan direction after being provided to the image reading apparatus.This pattern also includes a white background and those plurality ofblack oblique lines as shown in FIG. 17. The hard-material member 63 isadhered or fixed using another method onto the bottom surface 61a of thescale ruler 61, which surface comes into contact with the contact glass21. Then, the scale ruler 61 is fixed to the image reading apparatus andthus the measuring pattern, provided on the bottom surface of thehard-material member 63, comes into contact with the top surface 21a ofthe contact glass 21. The scale ruler 61 is also used for pressing downand holding the contact glass 21 onto the image reading apparatus.Thereby, the measuring pattern such as the even-pitch oblique linepattern of the hard-material member 63 is placed in parallel with thetop surface 21a of the contact glass 21, and at the side area of thecontact glass 21 beneath the scale ruler 61.

By such an arrangement, because the measuring pattern 30P is provided onthe hard-material member 63, it is possible to prevent the surface ofthe hard-material member 63 on which the measuring pattern such as theeven-pitch oblique line pattern is provided from becoming uneven, ruggedor partially bent, when the hard-material member 63 is fixed onto thescale ruler 61. Thereby, the advantages the same as those of the firstmethod described in the above-mentioned item 3.2.1.1 can be provided.

3.2.1.3 Third Method of Providing Measuring Pattern

A third method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a measuring pattern such as aneven-pitch oblique line pattern such as that shown in FIG. 12 is used asthe measuring pattern 30P. As shown in FIG. 18, the measuring patternsuch as the even-pitch oblique line pattern is directly provided(through printing or the like) on the top surface 21a of the contactglass 21 at the side area. Further, the bottom surface 61a of the scaleruler 61, which surface is pressed onto the thus-provided measuringpattern on the contact glass 21, is coated to be white, and, thus, thethus-provided white surface of the bottom surface 61a of the scale ruler61 acts as a white background of the above-mentioned measuring patternsuch as the even-pitch oblique line pattern after the scale ruler 61 hasbeen fixed to the image reading apparatus. Thus, the white surface ofthe bottom surface 61a of the scale ruler 61 comes into contact with theabove-mentioned side area of the contact glass 21, in which area themeasuring pattern is provided. The measuring pattern 30P directlyprovided on the contact glass 21 is combined with the white surface ofthe scale ruler 61. The above-mentioned even-pitch oblique line patternis such that each line of a plurality of in-parallel and even-pitcharranged lines is oblique to the main scan direction and also oblique tothe sub-scan direction after being provided to the image readingapparatus. Thereby, the measuring pattern such as the even-pitch obliqueline pattern is placed in parallel with the top surface 21a of thecontact glass 21, and at the side area of the contact glass 21 beneaththe scale ruler 61.

By such an arrangement, because the measuring pattern such as theeven-pitch oblique line pattern is directly provided on the contactglass, focusing to the measuring pattern through optical components ofthe image reading apparatus can be precisely performed. Thereby, it ispossible for the image reading apparatus to read the measuring patternwith a high accuracy. As a result, it is possible to perform the readingpixel position error measurement with a high accuracy. When themeasuring pattern provided on the contact glass 21 or the white surface61a of the scale ruler 61 is degraded due to staining, being worn off orthe like, necessary one of the contact glass 21 and the scale ruler 61is renewed.

3.2.1.4 Fourth Method of Providing Measuring Pattern

A fourth method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a measuring pattern such as aneven-pitch oblique line pattern such as that shown in FIG. 12 is used asthe measuring pattern 30P. The same as in the third method shown in FIG.18, the measuring pattern 30P such as the even-pitch oblique linepattern is provided on the top surface 21a of the contact glass 21 atthe side area. Further, the bottom surface 61a of the scale ruler 61,which surface is pressed onto the thus-provided measuring pattern on thecontact glass 21, has a white member 64 adhered thereonto, as shown inFIG. 19, and, thus, a white surface of the thus-provided white member 64on the bottom surface 61a of the scale ruler 61 acts as a whitebackground of the above-mentioned measuring pattern such as theeven-pitch oblique line pattern after the scale ruler 61 has been fixedto the image reading apparatus. Thus, the white surface of the whitemember 64 of the scale ruler 61 comes into contact with theabove-mentioned side area of the contact glass 21, in which area themeasuring pattern is provided. The measuring pattern directly providedon the contact glass 21 is combined with the white surface of the scaleruler 61. The above-mentioned even-pitch oblique line pattern is suchthat each line of a plurality of in-parallel and even-pitch arrangedlines is oblique to the main scan direction and also oblique to thesub-scan direction after being provided to the image reading apparatus.Thereby, the measuring pattern such as the even-pitch oblique linepattern is placed in parallel with the top surface 21a of the contactglass 21, and at the side area of the contact glass 21 beneath the scaleruler 61.

By such an arrangement, because the measuring pattern such as theeven-pitch oblique line pattern is directly provided on the contactglass, focusing on the measuring pattern through optical components ofthe image reading apparatus can be precisely performed. Thereby, it ispossible for the image reading apparatus to read the measuring patternwith a high accuracy. As a result, it is possible to perform the readingpixel position error measurement with a high accuracy. When themeasuring pattern provided on the contact glass 21 is degraded due tostaining, being worn off or the like, the contact glass 21 is renewed.However, when the white surface of the white member 64 on the scaleruler 61 is degraded due to staining, being worn off or the like, onlythe white member 64 needs to be renewed. When fixing a new one of thewhite member 64 to the scale ruler 61, it is not necessary to performthe fixing operation with a high accuracy. Therefore, the renewaloperation can be easily performed.

3.2.1.5 Fifth Method of Providing Measuring Pattern

A fifth method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a measuring pattern such as aneven-pitch oblique line pattern such as that shown in FIG. 12, is usedas the measuring pattern 30P. As shown in FIG. 20, the measuring patternsuch as the even-pitch oblique line pattern of the measuring pattern 30Pis provided directly (through printing or the like) on the bottomsurface 61a of the scale ruler 61. The bottom surface 61a of the scaleruler 61 is thus used for providing the measuring pattern 30P thereon.The even-pitch oblique line pattern is such that each line of aplurality of in-parallel and even-pitch arranged lines is oblique to themain scan direction and also oblique to the sub-scan direction afterbeing provided to the image reading apparatus. This pattern includes awhite background and those plurality of black oblique lines as shown inFIG. 20. The scale ruler 61 is fixed to the image reading apparatus andthus the measuring pattern comes into contact with the top surface 21aof the contact glass 21. The scale ruler 61 is also used for pressingdown and holding the contact glass 21 onto the image reading apparatus.Thereby, the measuring pattern such as the even-pitch oblique linepattern of the scale ruler 61 is placed in parallel with the top surface21a of the contact glass 21, and at the side area of the contact glass21 beneath the scale ruler 61.

In such an arrangement, by providing the measuring pattern 30P on thebottom surface 61a of the scale ruler 61 with high-accuracy positioning,it is possible to provide a high-accuracy measuring pattern 30P. Thus,it is possible to perform a high-accuracy, wide-frequency-range readingpixel position error measurement, and thereby to perform high-accuracypixel image data correction. As a result, it is possible to obtain animage having less distortion due to reading pixel position errors.Further, because the measuring pattern 30P is formed integrally with thescale ruler 61, when the measuring pattern is degraded due to staining,being worn off or the like, the scale ruler 61 is renewed. Thus, renewalof the measuring pattern can be easily performed.

3.2.1.6 Sixth Method of Providing Measuring Pattern

A sixth method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a measuring pattern such as aneven-pitch oblique line pattern such as that shown in FIG. 12 is used asthe measuring pattern 30P. The same as in the third method shown in FIG.18, the measuring pattern 30P such as the even-pitch oblique linepattern is directly provided on the top surface 21a of the contact glass21. In this example, it is not necessary to provided the pattern 30Pbeneath the scale ruler 61. Then, a white paint is coated on the contactglass 21 at the area at which the pattern 30P has been provided so as tocover the pattern 30P. Thus, the thus-coated white paint acts as a whiteband and thus acts as a white background of the measuring pattern 30Pprovided on the contact glass 21 beneath the white band. The measuringpattern 30P directly provided on the contact glass 21 is combined withthe white paint coated thereon. The above-mentioned even-pitch obliqueline pattern is such that each line of a plurality of in-parallel andeven-pitch arranged lines is oblique to the main scan direction and alsooblique to the sub-scan direction after being provided to the imagereading apparatus.

3.2.1.7 Seventh Method of Providing Measuring Pattern

A seventh method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a measuring pattern such as aneven-pitch oblique line pattern such as that shown in FIG. 12 is used asthe measuring pattern 30P. Similar to the third method described abovewith reference to FIG. 18, the measuring pattern 30P such as theeven-pitch oblique line pattern is directly provided (through printingor the like) on the top surface 21a of the contact glass 21. However,two of the measuring patterns 30P are provided at the two side areas onthe contact glass 21, as shown in FIG. 21. All of the oblique lines ofthe two measuring patterns 30P are in parallel with each other, as shownin FIG. 21. As a result, when the contact glass 21 is rotated by 180°,the two measuring patterns 30P are coincident. Further, the bottomsurface 61a of the scale ruler 61, which surface is pressed onto one ofthe measuring patterns 30P on the contact glass 21, is coated to bewhite, and, thus, the thus-provided white surface of the bottom surface61a of the scale ruler 61 acts as a white background of theabove-mentioned measuring pattern 30P after the scale ruler 61 has beenappropriately fixed to the image reading apparatus. Thus, the whitesurface of the bottom surface 61a of the scale ruler 61 comes intocontact with one of the above-mentioned side areas of the contact glass21, in which area the above-mentioned measuring pattern 30P is provided.That measuring pattern 30P directly provided on the contact glass 21 iscombined with the white surface of the scale ruler 61. Theabove-mentioned even-pitch oblique line pattern is such that each lineof a plurality of in-parallel and even-pitch arranged lines is obliqueto the main scan direction and also oblique to the sub-scan directionafter being provided to the image reading apparatus. Thereby, themeasuring pattern such as the even-pitch oblique line pattern is placedin parallel with the top surface 21a of the contact glass 21, and at theside area of the contact glass 21 beneath the scale ruler 61.

By such an arrangement, when that measuring pattern 30P provided on thecontact glass 21 is degraded due to staining, being worn off or thelike, as a result of the bottom surface 61a of the scale ruler 61 beingrubbing against the measuring pattern 30P, the contact glass 21 isrotated by 180°, and thus the other measuring pattern 30P is then usedsimilarly together with the white coated bottom surface 61a of the scaleruler 61, instead of measuring pattern 30p which was being used.

In each of the first to seventh methods described above, it ispreferable that a protective coating be provided on the measuringpattern 30P. Thereby, it is possible to prevent the pattern 30P frombeing degraded due to the contact glass 21 and the scale ruler 61rubbing against one another. Thereby, it is possible to elongate arenewal cycle of the measuring pattern 30P.

3.2.1.8 Eighth Method of Providing Measuring Pattern

An eighth method, as an example, of providing the measuring pattern 30Pwill now be described. In this example, a spatial arrangement of thecontact glass 21 and scale ruler 61 is considered. As shown in FIG. 22,the scale ruler 61 presses a member 66 onto the top surface 21a of thecontact glass 21 where the scale ruler 61 is appropriately fixed ontothe image reading apparatus. The member 66 can be any one of the sheetmember 62 shown in FIG. 16, the hard-material member 63 shown in FIG. 17and the white member 64 shown in FIG. 19. As shown in FIG. 22, a step 65is provided on the bottom surface of the scale ruler 61 between a middleportion 61b and an edge portion 61c. The middle portion 61b presses themember 66 onto the contact glass 21 while the edge portion 61c directlycomes into contact with the contact glass 21. The height of the step 65is equal to the thickness of the member 66 so that the edge portion 61cof the scale ruler 61 surely comes into contact with the top surface 21aof the contact glass 21 while the middle portion 61b of the scale ruler61 surely presses the member 66 onto the top surface 21a of the contactglass 21.

By this arrangement, it is possible to prevent a gap from being createdbetween the extending edge of the bottom surface 61a of the scale ruler61 and the top surface 21a of the contact glass 21. If such a gap ispresent, an original image object (such as a paper sheet) may beinserted, by accident, into the gap when being set on the contact glass21. If the original image object is inserted into the gap, the originalimage object may be torn when the set object is rapidly removed.

The member 66 shown in FIG. 22 may also be the measuring pattern 30Pitself. Although the thickness of the pattern itself is very small in acase where the pattern 30P is formed by printing, it may be effective toprovide the above-mentioned step 65 for prevent a gap from being createdbetween the extending edge of the bottom surface 61a of the scale ruler61 and the top surface 21a of the contact glass 21.

4. Fourth Embodiment

A measurement principle of an image reading apparatus in a fourthembodiment of the present invention is the same as the measurementprinciple of the first embodiment described above in the item 1.1.Therefore, duplicated descriptions will be omitted.

4.1 System Configuration

FIG. 23 shows a block diagram of a basic system configuration of theimage reading apparatus in the fourth embodiment of the presentinvention. This system configuration is substantially identical to thesystem configuration of the first embodiment shown in FIG. 2, exceptthat a noise reduction processing unit 14 is inserted between theshading correcting unit 3 and the position error measurement unit 4, asshown in FIG. 23. A line synchronization signal is provided to thecontrol unit 5 from a line synchronization unit 18. Thereby, the controlunit 5 can determine timing at which each main scan line pixel readingoperation is performed.

Because the configurations and functions of the light-to-electricityconverting unit 1, A/D converting unit 2, shading correcting unit 3,position error measurement unit 4 and control unit 5 are substantiallyidentical to those in the first embodiment shown in FIG. 1, descriptionsthereof will be omitted. Image data, which underwent the shadingcorrection by the shading correcting unit 3, is input to the noisereduction processing unit 14 which performs noise reduction processingon the image data and then provides thus-processed image data to theposition error measurement unit 4. Each function block, including thenoise reduction processing unit 14, shown in FIG. 23 is controlled bythe control unit 5 so that operation timings are controlled andoperation conditions are set, appropriately. Thereby, those functionblocks operate with an appropriate mutual operation relationship. Alsoin this fourth embodiment, it is also possible that the systemconfiguration shown in FIG. 3A, which is the variant embodiment of thefirst embodiment and was described above, is used instead of the systemconfiguration shown in FIG. 23. In this case, the general-purposecomputer 4A (such as the personal computer shown in FIG. 3B) isspecifically configured by software (stored in an any informationstorage medium such as a floppy disk shown in FIG. 3B) executed therebyto carry out not only the above-mentioned reading pixel position errormeasurement but also the noise reduction processing performed by thenoise reduction processing unit 14 when using the system configurationshown in FIG. 23, which processing will be described later. However,there are many cases where the system configuration shown in FIG. 23 isadvantageous if the reading pixel position error measurement is simplyperformed.

In the system configuration shown in FIG. 23, the image data whichunderwent the noise reduction processing by the noise reductionprocessing unit 14 is input to the position error measurement unit 4which set a measuring window on bit-map-formation image data, calculatesthe center of gravity of the image data within the measuring window andthus measures reading pixel position errors, as described above.However, it is also possible that the image data which has not undergonethe noise reduction processing is input to the position errormeasurement unit 4, then, after setting the measuring window asmentioned above, but prior to calculating the center of gravity asmentioned above, the noise reduction processing is performed on only theimage data within the set measuring window. In this method, a similareffect of noise reduction can be obtained. In this case, it is alsopossible that not only the image data of pixels within the measuringwindow but also image data of pixels outside the measuring window isused for the noise reduction performed for the image data within themeasuring window.

When a measuring pattern such as that shown in FIG. 5 of a plurality ofparallel oblique lines is used for the reading pixel position errormeasurement, because the pattern includes sufficiently dark lines in thesufficiently light, white background, image data obtained from readingthe pattern has a very simple structure. In fact, this image data can berepresented by two-level (black and white) values, and each oblique lineis represented by image data values of the black level for apredetermined line width. Therefore, when one main scan line of imagedata is extracted from the main scan lines of image data obtained fromreading the pattern, the extracted image data is shown in FIG. 24. In agraph shown in FIG. 24, the horizontal axis represents main scan lineaddresses (or addresses in the main scan line direction) while thevertical axis represents image data values which are represented by8-bit digital values, for example. By functions of MTF (ModulationTransfer Ratio) characteristics of a reading optical system in the imagereading apparatus, high-frequency components of the read image data areremoved. Thereby, a curve shown in FIG. 24 is obtained. With referenceto FIG. 24, an image data value is higher for the read oblique line ofthe measuring pattern at a position closer to the center thereof, whilean image data value is lower for the same read oblique line at aposition closer to each of the two edges (left and right edges of theoblique line a₁, shown in FIG. 5, for example) thereof. (Although theoblique line a₁, shown in FIG. 5, for example, is indicated in thefigure as a line having dots provided thereinside, each oblique lineused in such a measuring pattern as that mentioned above is actually ablack solid line, that is, the entire area inside of the line iscompletely black without any space.) For the entirety of an oblique lineof the measuring pattern, the image data obtained from reading theoblique line is such that image data for respective main scan lines,each of which is such as that shown in FIG. 24, smoothly continues inthe sub-scan direction along the longitudinal direction of the obliqueline, in a condition where no noise is included in the image data. Suchfeatures of the image data obtained from reading the measuring patternis used in the above-mentioned noise reduction processing performed bythe noise reduction processing unit 14 for reducing noises which may beactually included in the image data.

4.2 General Spatial Configuration

A general spatial configuration of the image reading apparatus in thefourth embodiment is substantially identical to the general spatialconfiguration of the image reading apparatus in the second embodimentdescribed above in the item 2.1 with reference to FIGS. 9, 10, 11 and12. Thus, the general spatial configuration of the fourth embodiment issuch as that shown in FIGS. 9, 10, 11 and 12. Therefore, descriptionsthereof will be omitted.

4.3. Position Error Measuring Process

A position error measuring process performed by the position errormeasuring unit 4, calculation of the center of gravity of image data ofpixels within a measuring window, a width of each oblique line of themeasuring pattern, a relationship between shift of the portion of theoblique line image in the measuring window and sub-scan directionreading pixel position error, a position error measurement procedure,and standard measuring charts to be used for the position errormeasurement are substantially identical to the position error measuringprocess (1.3), calculation of the center of gravity of image data ofpixels within a measuring window (1.4), relationship between shift ofthe portion of the oblique line image in the measuring window andsub-scan direction reading pixel position error (1.5), position errormeasurement procedure (1.6), and standard measuring charts to be usedfor the position error measurement (1.7) in the first embodiment,described above in those items 1.3, 1.4, 1.5, 1.6 and 1.7, withreference to FIGS. 4, 5, 6, 7, 8A, 8B, 8C and 8D. Therefore,descriptions thereof will be omitted.

5. Fifth Embodiment

An image reading apparatus in a fifth embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the fifth embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

As described with reference to FIG. 24, in the image data of a main scanline obtained from reading an oblique line of the measuring pattern, animage data value simply increases in a position for an edge of theoblique line while an image data value simply decreases in a positionfor the other (opposite) edge of the oblique line. By using thosefeatures, the noise reduction processing unit 14 obtains a centralposition in the main scan direction in the image data such as that shownin FIG. 24 for the center of the oblique line. Then, image data valuesin positions in the main scan line direction apart by a predetermineddistance from the thus-obtained central position are made to be `0`. Forexample, as show in FIG. 25, the central position M in the main scandirection is obtained, and, then, two positions E₂ and E₁, each beingapart from the central position by the predetermined distance in themain scan direction and the direction reverse to the main scandirection, are obtained. Then, for the hatched regions shown in FIG. 25,which are outside the position E₁ and E₂, the image data values are madeto be `0`. The central position may be obtained as a result of detectingthe simple increase portion R₁ and the simple decrease portion R₂ of thecurve of the image data, shown in FIG. 25. Those portions R₁ and R₂ maybe detected by detecting the slopes of the curve in the main scandirection. The center of those portions R₁ and R₂ is the above-mentionedcentral position M. The above-mentioned predetermined distance can bedetermined to be a suitable value, from the line width of each obliqueline of the measuring pattern and the MTF characteristics of the readingoptical system.

By this processing, it is possible to make image data be `0`, whichimage data is image data in positions where the image data should be `0`when the shading correction is correctly performed, the measuringpattern does not have any problem such as being stained or the like, andthe image data processing system in the image reading apparatus does nothave substantial noise factors. Thus, noises included in the image datacan be effectively reduced. In particular, when the condition that thetotal of moments about a center of gravity is `0`, as was describedabove in the item 1.4, is used for calculating the center of gravity,noise image data at positions apart farther from the center of gravitymay act as larger factors for preventing the calculation of the centerof gravity from being accurately performed. Therefore, by removing suchnoise image data by making the image data values be `0`, as describedabove with reference to FIG. 25, noise factors for the reading pixelposition error measurement can be effectively reduced.

In the fifth embodiment, noise image data is removed as a result ofimage data values being made to be `0`. However, alternatively, it isalso possible to ignore image data for positions apart farther than thepredetermined distance in the above-mentioned calculation of the centerof gravity. Thereby, a similar effect can be obtained.

6. Sixth Embodiment

An image reading apparatus in a sixth embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the sixth embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

In this embodiment, because it is predetermined that each oblique lineof the measuring pattern is an oblique line which is oblique by 45° inthe same direction as shown in FIGS. 5 and 6, image data of a pluralityof pixels arranged in the longitudinal direction of each oblique line ofthe measuring pattern is averaged, and thus is smoothed, using asmoothing filter by the following matrix equation (2), for example:##EQU1##

This matrix is applied to each 3-by-3 pixel group of the pixels of abit-map formation of read image data. Thereby, the image data of eachthree pixels arranged adjacent in the direction which is the same as thelongitudinal direction of an oblique line image of the measuring patternis averaged, and thus smoothed. A thus-calculated value is used as a newimage data value of the central pixel of the 3-by-3 pixel group.Thereby, edge lines of the read oblique line image can be smoothed. Thenumber of pixels in each of the horizontal and vertical directions ofthat matrix, such as three in the example of the above-mentionedequation (2), to be applied, can be arbitrarily determined to be morethan 1. However, when too large a number is applied thereto, the spatialfrequency band in the measurement may be undesirably narrowed. This isbecause, when the larger size of matrix is used as the filter, the imagedata is more averaged in the oblique line longitudinal direction, and,thereby, although noises may be reduced, the accuracy in the readingpixel position error measurement may be degraded. The number to beapplied as the number of pixels in each of the horizontal and verticaldirections of that matrix may be determined to be a suitable one,appropriately from properties of noises possibly included in image dataand objects of the measurement. In a case where each oblique line of themeasuring pattern is an oblique line which is oblique by 45° in thereverse direction, a matrix such as that mentioned above to be appliedhas `1` arranged in a diagonal direction corresponding to thelongitudinal direction of the oblique line.

As such a smoothing filter for smoothing image data obtained fromreading such a measuring pattern, a low-pass filter can also be used,instead of the above-described filter. Spatial frequency componentsincluded in image data obtained from reading oblique lines of themeasuring pattern are those within a limited frequency band which islimited due to the MTF characteristics of the reading optical system inthe image reading apparatus. Therefore, it can be determined thathigh-frequency components of frequencies higher than the limitedfrequency band correspond to noises. Therefore, it is effective to use alow-pass filter for removing such high-frequency components from theimage data.

7. Seventh Embodiment

An image reading apparatus in a seventh embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the seventh embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

Image data obtained from reading oblique lines of the above-describedmeasuring pattern for each main scan line is such as that shown in FIG.24, as described above. In such image data, an image data value simplyincreases in a position for an edge of the oblique line while an imagedata value simply decreases in a position for the other (opposite) edgeof the oblique line, as described above for the sixth embodiment. Thus,the image data forms a projection as shown in the figure. The sub-scandirection width B_(R) of the projection which starts at the simpleincrease and ends at the simple decrease, shown in FIG. 26, depends onthe width of the read oblique line image, such as the horizontal widthB_(L) of the oblique line image a₁, shown in FIG. 5. Therefore, becausethe width such as the width B_(L) of the read oblique line has apredetermined value, the width B_(R) has a predetermined value. Usingthis feature, the noise reduction processing unit 14 detects, from suchimage data obtained from reading a oblique line of the measuring patternfor each main scan line, image data variation regions, each of which hasa sub-scan direction width of a projection, starting at such a simpleincrease and ending at such a simple decrease or a depression, startingat such a simple decrease and ending at such a simple increase, that thesub-scan direction width is shorter than the above-mentioned referencewidth B_(R). Then, the image data values of each of those image datavariation regions are converted into a value which is an average valueof the image values of image data of pixels antecedent and subsequent tothat region, or those image data values of that region are removedtherefrom and then interpolated using those image values of image dataof pixels antecedent and subsequent to that region. Thereby, image dataof separate point images which form small projections or smalldepressions are removed from the image data obtained from reading themeasuring pattern.

For example, when a black particle, forming a separate point image, isundesirably adhered in proximity of an edge of an oblique line image ofthe measuring pattern, a small projection such as R₁ may be formed inthe resulting image data as shown in FIG. 26. Otherwise, when a whitesmall particle, forming a separate point image, is undesirably adheredinside an oblique line image of the measuring pattern, a smalldepression such as R₂ may be formed in the resulting image data as shownin FIG. 26. Such image data variation regions, from those separate pointimages, may adversely affect the image data from the oblique line image,and thus may prevent the reading pixel position error measurement frombeing correctly performed. Those image data variation regions, eachhaving the width B₁ or B₂ smaller than the reference width B_(R),thereby can be removed by the noise reduction processing unit 14 in theseventh embodiment which performs the processing described above.Thereby, the above-mentioned problems can be eliminated. Further, whensuch a separate point image is located apart from an oblique line image,the image variation region from this separate point image can also beremoved in the same processing performed by the noise reductionprocessing unit 14 in the seventh embodiment.

There may be a case where, although no foreign bodies such as black orwhite particles are adhered onto the measuring pattern, a region ofobtained image data where an image value should simply increase has animage value which does not actually simply increase due to noises fromthe image reading apparatus. For example, in a case where the imagereading apparatus has a capability that image tones are represented by8-bit data, and a noise, having characteristics by which the noisecannot be represented by the 8-bit resolution, occurs, the noise maycause a tone variation to be reversed. In such a case, a region ofobtained image data where an image value should simply increase may havean image value which does not actually simply increase. Such reversal ofa tone variation may form a small-width irregular image data variationin an increasing or decreasing edge of the image data region obtainedfrom an oblique line of the measuring pattern. Such a small-widthirregular image data variation can also be detected by the sameprocessing performed by the noise reduction unit 14 in the seventhembodiment, and thus such a noise can be effectively removed.

8. Eighth Embodiment

An image reading apparatus in an eighth embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the eighth embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

There may be a case where a tone level of the background of themeasuring pattern is high, that is, the background is rather dark, or atone level of an oblique line of the measuring pattern is low, that is,the oblique line is rather light. In such a case, sufficient contrastcannot be obtained in image data obtained from that measuring pattern.Otherwise, there may be a case where sensitivity adjustment of the imagereading apparatus has not been appropriately performed, and, thereby,sufficient contrast cannot be obtained in image data obtained from themeasuring pattern. In those cases, an image data value magnitude of theimage data such as that shown in FIG. 24 may not be sufficiently large.Thereby, the S/N (Signal to Noise) ratio may not be sufficiently high.Thereby, the reading pixel position error measurement may not beperformed with a high accuracy. The noise reduction processing unit 14in the eighth embodiment enlarges the contrast of obtained image datasuch as the image data shown in FIG. 24, thereby, the S/N ratio isimproved.

The contrast enlargement processing performed by the noise reductionprocessing unit 14 in the eighth embodiment uses the following equation(3):

    D.sub.N =255(D-D.sub.L)/(D.sub.H -D.sub.L)                 (3),

where D represents the original image data value of each pixel, D_(N)represents a new image data value of the pixel, D_(L) is the image datavalue of a pixel which is sufficiently apart outside from an edge of animage data projection, such as an image data projection P_(O) shown inFIG. 27, and D_(H) is the image data value of a pixel which is thehighest position of that image data projection. The value `255` is avalue which is the largest decimal-system value of the values which canbe represented by 8 bits. By this processing, an image data projectionobtained from reading an oblique line of the measuring pattern ismagnified in the image data value direction. Thus, as shown in FIG. 27,the original difference between the lowest image data level D_(L) andthe highest image data level D_(H) of the image data variation of theprojection P_(O) for a main scan line is converted into the image datavariation of the projection P_(N) which has the lowest image data levelof 0 and the highest image data level of 255.

In this processing, at the beginning of the reading pixel position errormeasurement, those D_(L) and D_(H) are obtained from image data of afirst read portion of an oblique line of the measuring pattern. Then,the thus-obtained D_(L) and D_(H) are used for subsequently readportions of oblique lines of the measuring pattern. Thereby, it ispossible to prevent undesirable errors from occurring due to a change inprocessing from a change of D_(L) and D_(H). Further, it is alsopossible to reduce a required overall processing time. In this example,a contrast is enlarged into the maximum contrast from 0 to 255. However,because D_(L) and D_(H) are first obtained and are used for subsequentprocessing as mentioned above, there may be a case where image data isundesirably clipped at 0 or 255 after performing the processing usingthe above-mentioned equation (3). In order to prevent such a situation,it is possible to use another equation by which a contrast is enlargedinto a range which has a margin or margins to the maximum range from 0to 255. However, when calculating the center of gravity in the readingpixel position error measurement as described above, a little amount ofimage data clipping may not substantially adversely affect the result ofthe measurement.

Alternatively, it is also possible that, first, all the oblique lineimages of the measuring pattern are read and stored in a memory,thus-stored image data being used for obtaining optimum values of D_(H)and D_(L) for effectively improving contrast of the image data. Further,it is also possible that the noise reduction processing unit 14 firstperforms the contrast improvement process described above, and then, atleast one of the other noise reduction processing described above forthe fourth, fifth, sixth and seventh embodiments is performed on theimage data. Thereby, it is possible to further improve an accuracy ofthe reading pixel position error measurement.

9. Ninth Embodiment

An image reading apparatus in a ninth embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the ninth embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

FIG. 28 shows an image-data-value simply increasing portion of imagedata for a main scan line obtained from reading a starting edge of anoblique line image of the measuring pattern. That is, FIG. 28 shows amagnified view of a portion, enclosed by a broken-line square S, of theimage data shown in FIG. 25, for example. In FIG. 28, a solidstep-shaped line indicates the image data when the image data isrepresented by 8-bit digital values, while a broken finer-step-shapedline indicates the image data when the image data is represented by9-bit digital values, thus, with an increased resolution. Further, inFIG. 28, solid horizontal lines represent possible image tone levels ofthe 8-bit digital image data, while broken horizontal lines and thesolid horizontal lines represent possible image tone levels of the 9-bitdigital image data which are finer than those of the 8-bit digital imagedata.

FIG. 29A shows an operation performed by the noise reduction processingunit 14 in the ninth embodiment. In the ninth embodiment, the noisereduction processing unit 14 adds one bit of `0`, as the LSB (LeastSignificant Bit), to 8-bit digital image data which is obtained fromreading an oblique line image of the measuring pattern. Thus, the imagedata becomes 9-bit digital data. When 8-bit digital data is expressed bya decimal-system value, possible decimal-system values are from 0 to255, while when 9-bit digital data is expressed by a decimal-systemvalue, possible decimal-system values are from 0 to 511. Thus, theresolution can be improved by increasing the number of bits of the imagedata, in S201 of FIG. 29A. Then, after thus increasing the number ofbits of the image data in S201, the smoothing processing which isdescribed above in the sixth embodiment is performed on thethus-obtained image data, in S202.

Thereby, 9-bit digital image data, similar to the 9-bit digital imagedata indicated by the broken finer-step-shaped line shown in FIG. 28,which is obtained from digitizing image data from reading an obliqueline image of the measuring pattern with the 9-bit digitizingresolution, can be obtained from the 8-bit digital image data indicatedby the solid step-shaped line, which is obtained from digitizing imagedata from reading the same oblique line image with the 8-bit digitizingresolution. As a result, although the digitizing resolution is the lower8-bit resolution, it is possible to effectively reduce quantizationnoises, light-to-electricity converting component noises, and othernoises occurring when image reading, which inevitably occur in the caseof using 8-bit resolution. Thereby, accuracy in the reading pixelposition error measurement can be improved.

The increase of the number of bits of image data is not limited to theincrease of 8 bits to 9 bits which is applied in this embodiment. It isalso possible to further increase the number of bits of image dataappropriately.

10. Tenth Embodiment

An image reading apparatus in a tenth embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the tenth embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

FIG. 29B shows an operation performed by the noise reduction processingunit 14 in the tenth embodiment. In the tenth embodiment, in S301 ofFIG. 29B, the noise reduction processing unit 14 increases, that is,doubles in this embodiment, the spatial resolution of the given imagedata, from 400 dpi to 800 dpi, by adding pixels having image values thesame as those of the predetermined adjacent pixels. Then, after thusincreasing the spatial resolution of the image data in S301, thesmoothing processing which is described above in the sixth embodiment isperformed on the thus-obtained image data, in S302. Thereby, it ispossible to obtain image data which more precisely corresponds to theoriginal image. As a result, it is possible to effectively reducequantization noises, light-to-electricity converting component noises,and other noises occurring when image reading, which noises inevitablyoccur in the case of using 400 dpi spatial resolution. Thereby, accuracyin the reading pixel position error measurement can be improved.

The increase of the spatial resolution of image data is not limited tothe increase from 400 dpi to 800 dpi which is applied in thisembodiment. It is also possible to further increase the spatialresolution of the image data appropriately.

11. Eleventh Embodiment

An image reading apparatus in an eleventh embodiment of the presentinvention will now be described. A configuration and a performance ofthe image reading apparatus in the eleventh embodiment are substantiallyidentical to those of the image reading apparatus in the fourthembodiment described above, except that the noise reduction processingunit 14 further performs processing which will now be described.

FIG. 29C shows an operation performed by the noise reduction processingunit 14 in the eleventh embodiment. In this embodiment, the noisereduction processing unit 14 performs on given image data both theincrease of the number of bits (that is, the number of possible tonelevels) of the given image data which is performed in theabove-described ninth embodiment and increase of the spatial resolutionof the given image data which is performed in the above-described tenthembodiment, in S401. Then, after thus increasing the number of possibletone levels and also increasing the spatial resolution of the givenimage data in S401, the smoothing processing which is described above inthe sixth embodiment is performed on the thus-obtained image data, S402.Thereby, it is possible to obtain the image data which even moreprecisely corresponds to the original image. As a result, it is possibleto effectively reduce quantization noises, light-to-electricityconverting components noises, and other noises occurring when imagereading, which noises inevitably occur in the case of using 8-bittone-level resolution and 400-dpi spatial resolution. Thereby, accuracyin the reading pixel position error measurement can be further improved.

It is also possible to appropriately combine the above-described fourth,fifth, sixth, seventh, eighth, ninth, tenth and eleventh embodiments.Thus, it is possible that the noise reduction processing unit 14 hasappropriate functions described for those embodiments. Thus, it ispossible to effectively combine those functions and to further improveaccuracy in the reading pixel position error measurement.

12. Twelfth Embodiment

As described above, in the above-described embodiments of the presentinvention, a measuring pattern consisting of oblique line images isread, a measuring window is set on a bit-map formation of thus-obtainedimage data, it is determined whether or not pixels of an oblique lineimage are included in the measuring window, the measuring window isshifted in a direction of the oblique line image if it is determinedthat pixels of the oblique line image are included in the measuringwindow, and a reading pixel position error measurement is performedbased on a positional deviation of those pixels of the oblique lineimage in the measuring window, as shown in FIG. 7.

In this operation, the measuring window is moved by an integer number ofpixels, repeatedly, and, then, the center of gravity of the image dataof pixels within the measuring window is calculated. For example, in acase where a 45° oblique line image is read with a unity magnification,the measuring window is moved in the main scan direction by one pixeland also in the sub-scan direction by one pixel, and then the center ofgravity of the image data of pixels within the measuring window iscalculated. In this operation, as long as an amount of a reading pixelposition error is small enough that the oblique line image `a` mayalways pass through a middle point of the measuring window W as themeasuring window moves repeatedly, as shown in FIG. 30A, the readingpixel position error measurement can be properly performed based on thatcalculation of the center of gravity. However, if an amount of readingpixel position error is so large that the oblique line image `a` may notalways pass through a middle point of the measuring window W as themeasuring window moves repeatedly, as shown in FIG. 30B, the readingpixel position error measurement can be properly performed. In theexample shown in FIG. 30B, when the measuring window W is located at thebottom-left position in the figure, the oblique line image `a` islocated at the right end of the window W, and a right-end part of theoblique line image `a` extends externally from the right end of thewindow W at that position, as shown in the figure. In order to preventsuch a problem from occurring, one method is that a size of themeasuring window W is elongated in the main scan direction. However, ifthis method is applied, a capacity of a memory for storing the imagedata of pixels within the measuring window needs to be increased.Further, thereby, a time required for the calculation using the imagedata stored in the memory of the increased capacity is elongated.

An image reading apparatus in a twelfth embodiment of the presentinvention can solve this problem without enlarging the size of themeasuring window W. As a result, it is not necessary to increase thecapacity of the memory for storing the image data of pixels within themeasuring window, and, thus, it is not necessary to elongate the timerequired for the calculation using the image data stored in the memory.

The measurement principle of the twelfth embodiment is substantiallyidentical to the measurement principle of the above-described firstembodiment described with reference to FIG. 1 in the item 1.1. In thetwelfth embodiment, FIG. 31, similar to FIG. 1, is used for describingthe measurement principle. However, the descriptions thereof are thesame as those in the item 1.1. Therefore, duplicated descriptions willbe omitted.

12.1 System Configuration

FIG. 32 shows a block diagram of a basic system configuration of theimage reading apparatus in the twelfth embodiment of the presentinvention. This system configuration is substantially identical to thesystem configuration of the image reading apparatus in the firstembodiment described above, except that an oblique line determining unit24 is inserted between the shading correcting unit 3 and the positionerror measurement unit 4. Therefore, duplicated descriptions will beomitted.

In this system, image data which underwent shading correction by theshading correcting unit 3 is input to the oblique line determining unit24, which performs a determination operation for oblique line images ofthe measuring pattern on the input image data. The determination resultis provided to the control unit 5. Further, the image data is input tothe position error measurement unit 4, which performs theabove-described reading pixel position error measurement on the inputimage data, and outputs the measurement result as the error signal 6.The position error measurement unit 4 also outputs the image data as thevideo signal 7. Each function block, including the oblique linedetermining unit 24, shown in FIG. 32 is controlled by the control unit5 so that operation timings are controlled and operation conditions areset, appropriately. Thereby, those function blocks operate with anappropriate mutual operation relationship. Also in this twelfthembodiment, it is also possible that the system configuration shown inFIG. 3A, which is the variant embodiment of the first embodiment and wasdescribed above, is used instead of the system configuration shown inFIG. 32. In this case, the general-purpose computer 4A (such as thepersonal computer shown in FIG. 3B) is specifically configured bysoftware (stored in any information storage medium such as a floppy diskshown in FIG. 3B) executed thereby to carry out not only theabove-mentioned reading pixel position error measurement but also theoblique line determination operation performed by the oblique linedetermining unit 24 when using the system configuration shown in FIG.32, which operation will be described later.

12.2 General Spatial Configuration

A general spatial configuration of the image reading apparatus in thetwelfth embodiment is substantially identical to the general spatialconfiguration of the image reading apparatus in the second embodimentdescribed above in the item 2.1 with reference to FIGS. 9, 10, 11 and12. Thus, the general spatial configuration of the fourth embodiment issuch as that shown in FIGS. 9, 10, 11 and 12. Therefore, descriptionsthereof will be omitted.

12.3 Oblique Line Determination Operation

An oblique line determination operation performed by the obliquedetermining unit 24 will now be described.

FIG. 33 shows a bit-map formation of image data representing a middleportion of an oblique line image of the measuring pattern, similar tothe oblique line `a` shown in FIG. 31, which image data is obtained fromreading the oblique line image. FIG. 34 shows specific image data valuesof respective pixels of the image data shown in FIG. 33. Each of theimage data values is expressed by 8-bit digital data (0 to 255) wherewhite is expressed by `0` and black is expressed by `255 `. In thebit-map formation shown in FIGS. 33 and 34, main scan directioncoordinate values are represented by Xn and sub-scan directioncoordinate values are represented by Yn. In the oblique linedetermination operation, a determining window is used. This determiningwidow is of 3 pixels (main scan direction) by 3 pixels (sub-scandirection). Each of FIGS. 35A, 35B, 35C, 35D and 35E shows a pixelgroup, defined by the determining window, of the image data show in FIG.34. The pixel groups shown in FIGS. 35A to 35E are obtained by shiftingthe determining window by one pixel in the main scan direction on thebit-map formation of image data shown in FIG. 34.

In this operation, first, for the pixel group (X2-X4, Y1-Y3) defined bythe determining window shown in FIG. 35A, a total of image data valuesof three pixels located at a top-left corner excluding the central pixelis calculated as Pa, and a total of image data values of three pixelslocated at a bottom-right corner excluding the central pixel iscalculated as Qa, as shown in FIG. 35A. Thus, ##EQU2##

Similarly, for the other four pixel groups shown in FIGS. 35B, 35C, 35Dand 35E, totals of pixel values of corner pixels are obtained,respectively, as follows: ##EQU3##

Then, a difference R (Ra, Rb, Rc, Rd, Re) between the total for thebottom-right corner pixels and the total for the top-left corner pixelsis calculated for each pixel group, as follows:

Ra=Qa-Pa=15-5=10;

Rb=Qb-Pb=222-7=215;

Rc=Qc-Pc=667-9=658;

Rd=Qd-Pd=750-33=717; and

Re=Qe-Pe=754-454=300.

When such a difference R (Ra, Rb, Rc, Rd, Re) has a larger value, it isdetermined that the determining window comes to or starts to includepixels of an oblique line of the measuring pattern. Thereby, it isdetermined that the determining window includes pixels of such anoblique line. For example, if a value `500` is determined as a thresholdvalue, it is determined that the determining window includes pixels ofan oblique line of the measuring pattern when the difference R is morethan 500. According to this determination threshold value, in the caseof each of the pixel groups shown in FIGS. 35C and 35D, it is determinedthat the determining window includes pixels of an oblique line of themeasuring pattern.

With reference to FIGS. 36A, 36B, 36C, 36D and 36E, another example ofthe method of the oblique line determination operation will now bedescribed. The pixel values shown in FIGS. 36A-36E are obtained as aresult of converting the pixel values shown in FIGS. 35A-35E intobilevel values (`0` or `1`) with a conversion threshold value of `128`.Using the pixel values shown in FIGS. 36A-36E, the above-mentionedcalculation of a total of the top-left corner pixels (Pa, Pb, Pc, Pd,Pe) and a total of the bottom-right corner pixels (Qa, Qb, Qc, Qd, Qe)is performed for each pixel group, as follows: ##EQU4##

Then, similarly, a difference R (Ra, Rb, Rc, Rd, Re) between the totalfor the bottom-right corner pixels and the total for the top-left cornerpixels is calculated for each pixel group, as follows:

Ra=Qa-Pa=0-0=0;

Rb=Qb-Pb=1-0=1;

Rc=Qc-Pc=3-0=3;

Rd=Qd-Pd=3-0=3; and

Re=Qe-Pe=3-2=1.

Similarly, when such a difference R (Ra, Rb, Rc, Rd, Re) has a largervalue, it is determined that the determining window includes pixels ofan oblique line of the measuring pattern. In this case, for example, ifa value `2` is determined as a threshold value, it is determined thatthe determining window includes pixels of an oblique line of themeasuring pattern when the difference R is more than 2. According tothis determination threshold value, in the case of each of the pixelgroups shown in FIGS. 36C and 36D, it is determined that the determiningwindow includes pixels of an oblique line of the measuring pattern. Inthis method, because each pixel value is converted into a bilevel valueas mentioned above, the calculations can thus be simplified.

With reference to FIGS. 37A, 37B, 37C and 37D, another example of themethod of the oblique line determination operation will now bedescribed. In this method, pattern matching is used. FIGS. 37A-37D showmatching patterns for the pattern matching. In each of FIGS. 37A-37D,each blank square represents a `0` pixel while each dotted squarerepresents a `1` pixel. In this method, first, image data of a pixelgroup defined by the determining window is converted into bilevel imagedata values, as shown in FIGS. 36A-36E. Then, the thus-obtained imagedata of each pixel group is compared with each matching pattern of thoseshown in FIGS. 37A-37D. Then, when the image data of a pixel groupdefined by the determining window is coincident with any of thosematching patterns, it is determined that the determining window includespixels of an oblique line of the measuring pattern. In this example, theimage data of the pixel groups shown in FIGS. 36C and 36D are coincidentwith the matching patterns shown in FIGS. 37B and 37A, respectively.Thereby, in the case of each of the pixel groups shown in FIGS. 36C and36D, it is determined that the determining window includes pixels of anoblique line of the measuring pattern.

In this embodiment, the determining window has the size of 3 pixels by 3pixels. However, it is possible to use another size of the determiningwindow. Also in the case of using another size of the determiningwindow, similar methods can be applied for performing the oblique linedetermination operation. Generally speaking, as the size of thedetermining window is increased, the determination accuracy becomeshigher. However, a time required for the determination operation isincreased, and a circuit scale required for the determination operationis increased, accordingly.

Further, in the above descriptions, only the cases where the determiningwindow includes pixels of the left side of an oblique line of themeasuring pattern are included. However, those methods can also beapplied to cases where the determining window includes pixels of theright side of an oblique line of the measuring pattern. In those cases,top-left pixels have larger tone values and bottom-right pixels havesmaller tone values, although the top-left pixels have smaller tonevalues and the bottom-right pixels have larger tone values in theabove-described case of FIGS. 35C, 35D, 36C, 36D. Similarly, for thecases of the determining window including pixels of the right side of anoblique line image, matching patterns, which are obtained by invertingthe dotted pixels and blank pixels of the matching patterns shown inFIGS. 37A-37D, may be used. Further, it is also possible to move thedetermining window in the direction reverse to the main scan direction,that is, to move the determining window leftwardly in FIG. 34, and thusto reach the condition that the determining window includes pixels ofthe right side of an oblique line image and the condition that thedetermining window includes pixels of the left side of an oblique lineimage.

12.4 Position Error Measuring Process

12.4.1 Summary of the Measuring Process

With reference to FIG. 38, a summary of the reading pixel position errormeasuring process performed by the image reading apparatus in thetwelfth embodiment will now be described. The arrangement shown in FIG.38 is similar to the arrangement shown in FIG. 5, and, thus, the readingpixel position error measuring process in the twelfth embodiment issimilar to the reading pixel position error measuring process in thefirst embodiment described above in the item 1.3, and, therefore,duplicated descriptions will be omitted. In the method of the twelfthembodiment, a plurality of oblique line images (in this example, threeoblique line images K1, K2 and K3) in a bit-map formation of read imagedata, such as that shown in FIG. 31, are used. A measuring window W (W1,W2, W3, . . . ) has a size of 10 pixels by 3 pixels. Similar to theprocess of the first embodiment, the measuring window W is shifted byone pixel in the bottom-left 45° oblique direction, producing themeasuring windows W1, W2, W3, . . . , as shown in FIG. 38, for theoblique line image K2. For each position of the measuring window W, thecenter of gravity of image data of pixels defined by the measuringwindow W in the main scan direction is obtained, and, thus, a positionof the image data is obtained. Then, after the measuring window Wreaches the last position Wn for the oblique line image K2, themeasuring window W is shifted in the main scan direction, and therebythe measuring window W is positioned at a position Wn+1, for thesubsequent oblique line image K3, as shown in FIG. 38.

12.4.2 Measurement of Center of Gravity

With reference to FIG. 39, an operation flow of measurement of theabove-mentioned center of gravity for the reading pixel position errormeasurement will now be described. The operation starts at the same timewhen the measuring pattern is read by the image reading apparatus. InS1, coordinate values X, Y in the main scan direction and sub-scandirection of the bit-map formation of the image data are initialized at`0`, that is, X=0 and Y=0, respectively. The above-mentioned determiningwindow (for the oblique line determining operation) having a size of 3pixels by 3 pixels is set so that, in this operation, for example, theabove-mentioned coordinate values X, Y represent the center pixel ofthat determining window. Then, a number `i` (variable) for counting ofthe number of measuring operations performed for one oblique line imageis initialized, that is, i=0, in S2. Further, in S2, a window shiftamount count variable `s` is also initialized at `0`, that is, s=0.

In S3, as described above in the item 12.3, the oblique line determiningunit 24 determines whether or not the determining window includes pixelsof the left side of an oblique line image, or includes pixels of theright side of an oblique line image. If it is determined in S3 that thedetermining window does not include pixels of the left or right side ofan oblique line image, the X coordinate value is incremented by 1(X=X+1), in S4. Thus, the determining window shifts in the main scandirection by one pixel. This amount of shifting of the determiningwindow in this step is not limited to one pixel, and may be determineddepending on a size of the determining window and a thickness of anoblique line image of the measuring pattern. It is possible that thatamount of shifting of the determining window in this step is a pluralityof pixels. If it is determined in S3 that the determining windowincludes pixels of an oblique line image, the measuring window W1 is setin S5 in the bit-map formation of the image data, as shown in FIG. 38.(Note: According to this operation flow, the oblique line image K1 shownin FIG. 38 should be processed first. However, this figure shows a casewhere processing for the oblique line image K1 has been finished, and,then processing for the oblique line image K2 is started, forconvenience sake.) In this step, the measuring window W1 is set in aposition such that the measuring window W1 is set at a position shiftedby a predetermined number of pixels from the current position (at whichthe presence of the oblique line is detected) of the determining windowWD. For example, as shown in FIG. 38, the previously set determiningwindow WD is located in a predetermined left position of the measuringwindow W1, in this operation. Thereby, when it is determined by theoblique line determining unit 24 that the determining window WD includespixels of the oblique line image K2, the oblique line image K2 islocated at a predetermined middle position of the measuring window. Thethus-set spatial relation between the determining window and measuringwindow W is fixed, that is, the determining window shifts together withthe measuring window, during the operation procedure shown in FIG. 39.In S6, the center of gravity of the image data of the pixels within themeasuring window W1 is calculated. Then, in S7, in order to determinewhether or not the oblique line image K2 is located at the middle of themeasuring window W1, the center of gravity calculated in S6 (`pos` inFIG. 39) is compared with the center position in the main scan directionof the measuring window W1 (this center position being referred to as`XW` in FIG. 39 and hereinafter). When the difference between the centerof gravity `pos` and center of measuring window `XW` is close to 0, itis determined that the oblique line image K2 is located at the center ofthe measuring window W1. When it is determined in S7, S8 that thedifference is more than +2 pixels, the measuring window is shifted by +1pixel (X=X+1) in the main scan direction, and the shift amount countvariable `s` is incremented by 1 (s=s+1), in S9. When it is determinedin S7, S8 that the difference is greater than -2 pixels, the measuringwindow is shifted by -1 pixel (X=X-1) in the main scan direction, andthe shift amount count variable `s` is decremented by 1 (s=s-1), in S10.

After the above-described procedure is repeated until theabove-mentioned difference is less than 2 in S7, S11 is performed. Theabove-mentioned threshold value `2` used in S7 and S8 does not need tobe limited to the number `2`. This value may be determined depending ona size of the measuring window.

In S11, an amount of reading pixel position error P_(E) is calculated bythe following equation (4):

    P.sub.E =pos-pos0-mom+s                                    (4).

where `mom` represents a correction factor of the center of gravity,which will be described later. The initial value of the `mom` is `0`.Further, `pos0` is the center of gravity in the first main scan line inthe condition where no reading pixel position error is present. Thus,the reading pixel position error P_(E) is obtained as a result ofsubtracting the value of the center of the measuring window XW and alsothe correction factor of the center of gravity `mom` from the value ofthe center of gravity calculated in S6 `pos`, and adding the shiftamount count variable `s` thereto.

Then, in S12, the Y coordinate value is incremented by one pixel (Y=Y+1)and thus the measuring window is shifted in the sub-scan direction byone pixel. Simultaneously, the shift amount count variable `s` isincremented by +1, and also the above-mentioned number `i` (variable)for counting the number of measuring operations performed for oneoblique line image is incremented by 1. In this step, the measuringwindow is not shifted in the main scan direction. In this operationprocedure, the measuring window position shifting in the main scandirection is performed in S4, S9 or S10 for correcting a position of themeasuring window relative to a position of an oblique line image of themeasuring pattern so as to cause the oblique line image to be positionedat the middle position of the measuring window. By repeating such anoperation, the measuring window W is shifted repeatedly, so that W₁, W2,W3, . . . , Wn, and the reading pixel error measurement is performed foreach position of the measuring window.

Then, the above-mentioned number `i` (variable) for counting the numberof measuring operations performed for one oblique line image is comparedwith a predetermined value `i_(end) `, which is the number of measuringoperations to be performed for one oblique line image, in S13. In thiscase, i_(end) =n. Thus, for example, for the oblique line image K2 shownin FIG. 38, after the processing at the measuring window position of Wnhas been finished, the operation for that oblique line image isterminated. Then, as shown in FIG. 38, similar processing for thesubsequent oblique line image K3 is performed. Thus, the measuringwindow W is shifted into the position Wn+1 in the main scan direction.For this purpose, the measuring window W is shifted in the main scanline direction by `m` pixels, the number `m` being a number less, by aninteger number, than the number of pixels which correspond to thecenter-to-center distance in the main scan direction between adjacentoblique line images. Then, the shift amount counter variable `i` isinitialized at `0`, and the oblique line determination operationperformed by the oblique line determining unit 24 starts from S3 shownin FIG. 39. In this case, the correction factor of the center ofgravity, `mom`, used in S11 is the difference between the value of thecenter of gravity calculated for the measuring window Wn+1 `mom` and thevalue of the center of gravity calculated for the measuring window Wn`mom`, that is,

    mom=mom2-mom1                                              (5).

According to the operation procedure shown in FIG. 39, the measuringwindow is shifted to become Wn+1, Wn+2, Wn+3, . . . , and the readingpixel error measurement is performed for each measuring window position,similarly.

FIG. 40 shows a movement of the measuring window according to theabove-described measuring window setting and shifting control operation,in a case where an amount of reading pixel position error is so largethat an oblique line image formed in a bit-map formation of obtainedimage data is oblique more steeply than 45°. By the above-describedmeasuring window setting and shifting control operation described withreference to FIG. 39, it is possible that the measuring window ispositioned so that an oblique line image of the measuring pattern islocated in the middle position of the measuring window when the readingpixel position error is measured. Thereby, it is possible to perform thereading pixel position error measurement with a high accuracy. Further,it is not necessary to provide a measuring window having a large lengthin the main scan direction for an oblique line image to be positioned inthe middle of the measuring window. In another view point, it is notnecessary to use oblique lines of the measuring pattern (L of themeasuring chart 30 shown in FIG. 12, for example), each oblique linebeing thin. It is possible to use thick or bold oblique lines for themeasuring pattern, and such thick or bold lines is not likely to beadversely affected by the MTF of the reading optical system of the imagereading apparatus.

12.4.3 Calculation of the Center of Gravity from Image Data in theWindow, the Width of the oblique line, and Relationship between Shift ofthe Portion of the Oblique Line Image in the Measuring Window andSub-Scan Direction Reading Pixel Position Error

The calculation of the center of gravity of image data of pixels definedby the measuring window, performed in S6, the width of each of obliquelines of the measuring pattern, the relationship between shift of theportion of the oblique line image in the measuring window and sub-scandirection reading pixel position error are substantially identical tothose in the first embodiment, described above in the items 1.4 and 1.5,with reference to FIG. 6. Therefore, duplicated descriptions thereofwill be omitted.

In this case, the measuring window has the size of 10 pixels by 3pixels, as mentioned above, shown in FIG. 41, while the measuring windowhas the size of 11 pixels by 3 pixels in the first embodiment, shown inFIG. 6. In the case of FIG. 41, when calculating the center of gravityof the pixels in the measuring window, similarly, the total of the imagedata of pixels is obtained for each column, for those three main scanlines. The totals of the image data of pixels obtained for thosecolumns, which columns are referred to as, from the left-hand side, X0,X1, X2, X3, X4, X5, X6, X7, X8, and X9, as shown in FIG. 41,respectively. Those totals are 18, 50, 202, 427, 590, 562, 345, 150, 37,and 14, respectively, as shown in the figure. Assuming that the mainscan direction coordinate values of the centers of those pixels are,toward the right-hand side, 0 to 9, respectively,

    X0(Rm-0)+X1(Rm-1)+X2(Rm-2)+ . . . +X9(Rm-9)=0              (6),

where the coordinate value of the center of gravity in the main scandirection is `Rm`, because the overall moment about the center ofgravity `Rm` is 0. Thus, the center of gravity in the main scandirection of (the image data of) the pixels in the measuring window iscalculated. After applying the above-mentioned specific values of theimage data column totals X0, X1, X2, . . . , X9 and solving theabove-mentioned equation (6), the center of gravity:

Rm=4.362.

is obtained.

The above-mentioned correction factor of the center of gravity `mom`will now be described. In a case where the reading pixel position errormeasurement is performed using the measuring pattern including aplurality of oblique lines such as that shown in FIG. 38, an operationwhich will be described is performed. A case will now be consideredwhere the measuring window is shifted from an oblique line image to asubsequent oblique line image, such that the measuring window is shiftedfrom the position Wn to the position Wn+1 shown in FIG. 38. In thiscase, it is assumed that the center-to-center distance in the main scandirection between the adjacent oblique lines does not correspond to aninteger number of pixels. In comparison therewith, the measuring windowis shifted by an integer number of pixels. In such a case, it isnecessary to correct obtained reading pixel position error for adeviation of that center-to-center distance in the main scan directionbetween the adjacent oblique lines from an integer number of pixels,that is, a fraction portion of that distance. Thereby, it is possible toobtain the reading pixel position error without including an error dueto such a fraction portion of that distance. The above-mentionedcorrection factor of the center of gravity `mom` used in S11 shown inFIG. 39 is subtracted from an obtained reading pixel position errorvalue (pos-XW), and, thus, the above-mentioned correction for such afraction of a center-to-center distance in the main scan directionbetween adjacent oblique lines of the measuring pattern is performed.

For example, in the example shown in FIG. 38, it is assumed that thecenter of gravity of image data of pixels defined by the measuringwindow Wn is `4.65`, that is, R_(n) =4.65. Further, the center ofgravity of the measuring window Wn+1 is `4.38`, that is, R_(n+1) =4.38.Similarly, R_(n+2) =4.40, and R_(n+3) =4.41. In this case, according tothe above-mentioned equation (5), the deviation of the calculatedcenters of gravity for the measuring window shifting between theadjacent oblique lines, that is, the correction factor mom, is obtainedas follows: ##EQU5## Then, according to the equation (4), thus-correctedamounts P_(E) n+2 and P_(E) n+3 of the reading pixel position error forthe window positions Wn+2 and Wn+3 are obtained, in a case where s=0, asfollows: ##EQU6## In other words, the above-mentioned values of thecenters of gravity R_(n+2) and R_(n+3) are corrected into Rc_(n+2) andRc_(n+3), respectively, as follows:

Rc_(n+2) =R_(n+2) +mom=4.40+0.27=4.67; and

Rc_(n+3) =R_(n+3) +mom=4.41+0.27=4.68.

Thereby, when the measuring pattern including a plurality of obliquelines is used for the reading pixel position error measurement, it ispossible to perform the measurement continuously through the pluralityof oblique lines with a high accuracy. In this case, it is necessary,when the measuring window is shifted between the positions Wn and Wn+1of the oblique lines K2 and K3, respectively, that those oblique lineimages K2 and K3 are present on the same main scan line.

FIG. 42 shows a spatial relationship between adjacent oblique lines ofthe measuring pattern. As shown in FIG. 42, in a case where each obliqueline has a length of L1, an angle between each oblique line and the mainscan line direction is θ, and a starting point and ending point of eachoblique line in the main scan direction are coincident with each other,respectively, the following equation (7) is satisfied:

    L2<L1·cos θ                                 (7),

where L2 represents a distance in the main scan direction betweenadjacent oblique lines. Thereby, adjacent oblique lines are present onthe same scan line, that is, the bottom end of the upper oblique line ofthe adjacent oblique lines is lower than the top end of the loweroblique line, as shown in FIG. 42. In such a condition, it is possibleto continue the reading pixel position error measurement through aplurality of oblique lines by shifting the measuring window therebetweenin the main scan direction. When the difference between the left-handterm (L2) and the right-hand term (L1·cos θ) is larger in theabove-mentioned equation (7), accuracies in the length L1 of eachoblique line does not need to be high.

13. Thirteenth Embodiment

13.1 General Spatial Configuration

A general spatial configuration of an image reading apparatus in athirteenth embodiment of the present invention is substantiallyidentical to the general spatial configuration of the image readingapparatus in the second embodiment described above in the item 2.1 withreference to FIGS. 9, 10, 11 and 12. Thus, the general spatialconfiguration of the fourth embodiment is such as that shown in FIGS. 9,10, 11 and 12. Therefore, duplicated descriptions thereof will beomitted.

13.2 System Configuration

FIG. 43 shows a block diagram of a basic system configuration of theimage reading apparatus in the thirteenth embodiment of the presentinvention. This system configuration is substantially identical to thesystem configuration of the image reading apparatus in the twelfthembodiment described above, except that a position error correcting unit10 is inserted after the position error measurement unit 10. Therefore,duplicated descriptions will be omitted.

In this system, the position error correcting unit 10 receives the errorsignal and video signal from the position error measurement unit 4. Theposition error correcting unit 10 uses the error signal (indicatingreading pixel position errors) and video signal, and, thus, performs areading pixel position error correction operation on the image datacarried by the video signal, according to the error signal. As a result,the position error correcting unit 4 outputs a video signal carryingthus-corrected image data. Each function block, including the positionerror correcting unit 10, shown in FIG. 43 is controlled by the controlunit 5 so that operation timings are controlled and operation conditionsare set, appropriately. Thereby, those function blocks operate with anappropriate mutual operation relationship. Also in this thirteenthembodiment, it is also possible that the system configuration shown inFIG. 3A, which is the variant embodiment of the first embodiment and wasdescribed above, is used instead of the system configuration shown inFIG. 43. In this case, the general-purpose computer 4A (such as thepersonal computer shown in FIG. 3B) is specifically configured bysoftware (stored in an any information storage medium such as a floppydisk shown in FIG. 3B) executed thereby to carry out not only theabove-mentioned reading pixel position error measurement and the obliqueline determination operation but also the reading pixel position errorcorrection operation performed by the position error correcting unit 10when using the system configuration shown in FIG. 43, which operationwill be described later.

13.3 Measurement Principle

The measurement principle of the thirteenth embodiment is substantiallyidentical to the measurement principle of the above-described twelfthembodiment described above. Therefore, duplicated descriptions will beomitted.

13.4 Oblique Line Determining Operation

The oblique line determining operation of the thirteenth embodiment issubstantially identical to that of the twelfth embodiment describedabove in the item 12.3. Therefore, duplicated descriptions will beomitted.

13.5 Position Error Measuring Process

13.5.1 Summary of the Measuring Process

The summary of the reading pixel position error measuring process in thethirteen embodiment is substantially identical to that of the twelfthembodiment described above in the item 12.4.1. Therefore, duplicateddescriptions will be omitted.

13.5.2. Center of Gravity Measuring Operation

A center of gravity measuring (calculation) operation performed in thereading pixel position error measurement in the thirteenth embodimentwill now be described with reference to FIGS. 38 and 44.

This operation starts at the same time when scanning of an originalimage object including the measuring pattern is started. Each of X and Ycoordinate values is initialized so that X=0 and Y=0, in S101. The X, Ycoordinate values represent a pixel position, which pixel is included inthe above-mentioned determining window which is thus set in a bit-mapformation of obtained image data. For example, the X, Y coordinatevalues represent a position of the center pixel of the determiningwindow. Then, a variant `i` which indicates a number of measuringoperations which have been performed on one oblique line of themeasuring pattern is initialized at `0`, in S102.

Then, in S103, the oblique line determining unit 24 shown in FIG. 43determines (in the method described above in the item of 12.3 withreference to FIGS. 33-37) whether or not the set determining window (ofa size of 3 pixels by 3 pixels) includes pixels of an oblique line imageof the measuring pattern. If it is determined that the determiningwindow does not include pixels of an oblique line, the X coordinatevalue is incremented and, thereby, the determining window is shifted byone pixel in the main scan direction in the bit-map formation of theimage data, in S104. This amount of shifting of the determining windowdoes not need to be limited to one pixel. The amount of shifting of thedetermining window may be determined depending on a size of thedetermining window and a thickness of each oblique line image of themeasuring pattern. It is possible that the amount of shifting of thedetermining window may correspond to a plurality of pixels instead ofone pixel. If it is determined in S103 that the determining windowincludes pixels of an oblique line image, the measuring window W1 shownin FIG. 38 is set in the bit-map formation of the image data, and thecenter of gravity of the image data of pixels defined by the measuringwindow W1 is calculated (in the method described above in the item12.4.3 with reference to FIG. 41), in S105. A setting position of themeasuring window W1 is determined so as to have a predetermined spatialrelationship with the position of the determining window. For example,the spatial relationship between the measuring window W1 and determiningwindow WD is such as that shown in FIG. 38 as described above. Thatspatial relationship is fixed during the reading pixel position errormeasurement process. When the center of gravity is calculated, theposition of the measuring window W1 may be shifted in the main scandirection or the opposite direction by an integer number of pixels sothat a portion the oblique line image within the measuring window W1 maybe positioned at the center of the measuring window W1 as in theoperation in S7, S8, S9, S10 shown in FIG. 39 described above.

After the center of gravity is calculated in S105, an error of thecenter of gravity is calculated in comparison to the case where theoblique line image of the measuring pattern is read by the image readingapparatus without any reading error, in S106. For example, the error iscalculated in S106 in the same way as in the operation in S11 shown inFIG. 39 described above. Then, the X coordinate value is decremented byone pixel (-1), the Y coordinate value is incremented by one pixel (+1)and the variant `i` which indicates a number of measuring operationswhich have been performed on that oblique line is incremented by 1, inS107. Thereby, the position of the measuring window is shifted into theposition W2 shown in FIG. 38 as a result of shifting in the sub-scandirection by one pixel and shifting in the direction opposite to themain scan direction by one pixel. The shifting amount does not need tobe limited to one pixel in the sub-scan direction and the directionopposite to the main scan direction. In the above-described examples,the measuring window is moved one pixel by one pixel. However, in a casewhere a frequency band of causes of reading pixel position errors suchas apparatus vibration is low, for example, it is possible that themeasuring window is moved two (or more) pixels by two (or more) pixelsin each of the main scan direction and sub-scan directionsimultaneously. Thereby, it is possible to shorten a time required forthe reading pixel position error measurement.

Then, before the above-mentioned variant `i` reaches a predeterminednumber `n`, the operation returns to S105 from S108. After the variant`i` reaches a predetermined number `n`, that is, after the measuringwindow is positioned at the position Wn shown in FIG. 38, the operationgoes from S108 to S109, and thus the measuring window is shifted intothe position Wn+1 for the subsequent oblique line K3, in S109. For thispurpose, the coordinates of the measuring window is shifted in the mainscan direction by an integer number `m` of pixels, corresponding to adistance between the adjacent oblique line images. Then, theabove-mentioned variant `i` is initialized at `0`, in S102. Then, theoperation again starts from the oblique line determining operation inS103 for the oblique line image K3. Thus, the measuring window isshifted into positions Wn+1, Wn+2, Wn+3, . . . , and the reading pixelposition error measurement (that is, the center of gravity errormeasurement) is performed for each measuring window position.

By using a plurality of parallel oblique line images such as those shownin FIG. 38 in the reading pixel position error measurement according tothe present invention, it is possible to perform the measurementthroughout an original image reading area of the image reading apparatuseven if the original image reading area is long in the sub-scandirection and short in the main scan direction. Further, by using theplurality of parallel oblique line images in the measurement, it ispossible to use in the measurement the measuring chart or pattern to belong in the sub-scan direction and short in the main scan direction. Bypositioning such a long and narrow measuring chart along the sub-scandirection at various different positions in the main scan direction, itis possible to perform the reading pixel position error measurement forvarious positions separately.

In the above-described measuring method, it is not necessary to makethose oblique line images of the measuring chart be finer in order toimprove the resolution of the reading pixel position error measurement.Thus, it is possible to use those oblique line images, each of which iswide, such that those line images may not be adversely affected by theMTF of the apparatus. By thus using the wide line pattern, the measuringwindow should be enlarged. Thereby, it is possible to improve accuracyof the reading pixel position error measurement. In a case where themeasurement is performed in a real-time manner, the width of each lineof the oblique line pattern of the measuring chart may be determined inconsideration of balance between the data processing rate, the datastorage size of buffers, and the circuit scale of the measurementsystem.

In the above-described examples, the center of an oblique line image isobtained by calculating the center of gravity of the pixels in themeasuring window. However, it is also possible to use a wider line imageand the position of an edge of the line image is obtained in somewell-known manner. Also in such a method, the reading pixel positionerror measurement can be performed similarly.

Further, in the above-described methods using one or a plurality ofparallel oblique line images, the state of the portion of the obliqueline image defined by the measuring window is always approximately fixedas shown in FIG. 38. Thereby, the above-mentioned `moire` problem, whichcannot be avoided in the method using the test chart of the even-pitchlines arranged in the sub-scan direction in the related art describedabove, can be avoided in the present invention. Thus, it is possible toperform a high-accuracy reading pixel position error measurement.

13.6 Position Error Correcting Operation

A reading pixel position error correcting operation, in the thirteenthembodiment, performed by the position error correcting unit 10 shown inFIG. 43 will now be described with reference to FIGS. 45, 46, 47A and47B.

The above-mentioned `cubic function convolution method`, which uses aweighting function, is also applied for the reading pixel position errorcorrecting operation in the thirteenth embodiment. FIG. 45 illustratesthat correction operation using the cubic function convolution method,and FIG. 46 shows an operation flow of the correction. PositionsP_(n-3), P_(n-2), P_(n-1), P_(n), P_(n+1), P_(n+2) and P_(n+3) representideal reading pixel positions when reading an original image objectthrough the image reading apparatus in an ideal condition. This idealcondition is such that no scanning speed variation occurs in the readingoperation performed by the light-to-electricity converting unit 1.Specifically, the reading carriage (such as the above-mentioned firstcarriage) of the light-to-electricity converting unit 1 for scanning theoriginal image object so as to read it moves in a precisely fixed speed.In the ideal condition, as shown in FIG. 45, those pixel positions arearranged in an even-pitch manner or with equal adjacent distances.Positions Q_(n-1), Q_(n), Q_(n+1), Q_(n+2), Q_(n+3), Q_(n+4) and Q_(n+5)represent actual reading pixel positions when reading the original imageobject through the image reading apparatus in an actual condition. Thisactual condition is such that some scanning speed variation occurs inthe reading operation performed by the light-to-electricity convertingunit 1. Specifically, the reading carriage of the light-to-electricityconverting unit 1 moves in a varying speed. In the actual condition, asshown in FIG. 45, those pixel positions are arranged in an uneven-pitchmanner or with unequal adjacent distances. Further, those pixelpositions in the actual condition are deviated from the pixel positionsin the ideal condition, respectively. For example, the actual readingpixel position Q_(n) should be located at the ideal reading pixelposition P_(n).

In such a case, those position deviations in the sub-scan direction canbe measured by the position error measurement unit 4. As described abovewith reference to FIGS. 1 and 31, from an error of the center of gravityin the main scan direction measured in the reading pixel position errormeasurement, such a reading pixel position error (deviation) can beobtained. In fact, when the scanning speed varies, the oblique lineimage in the bit-map formation of the obtained image data is deviatedfrom the oblique line image `a` to the oblique line image `b` shown inFIG. 31, for example. Such a deviation is measured by obtaining an errorof the center of gravity in the main scan direction of the image data ofpixels defined by the measuring windows Wn, Wn+1, Wn+2.

Using the thus-obtained reading pixel position errors in the sub-scandirection, for example, correct image data (tone data) of the pixelP_(n) which is present on a n-th main scan line is estimated from theactually obtained image data of some of the pixel positions Q_(n-1),Q_(n), Q_(n+1), Q_(n+2), Q_(n+3), Q_(n+4) and Q_(n+5) according to thecubic function convolution method.

In this method, in S171, image data of actually obtained pixels andreading pixel position error data is obtained in the units 1, 2, 3, 24and 4 of the image reading apparatus shown in FIG. 43. Then, in S172,therefrom, image data of actually obtained pixels which are locatedwithin distances of two ideal pixels (r0 and r5 shown in FIG. 45) fromthe position (P_(n)) of the n-th main scan line, and reading pixelposition error data therefor is extracted. In the case of FIG. 45, imagedata and error data of the actually obtained pixels Q_(n), Q_(n+1),Q_(n+2), Q_(n+3) and Q_(n+4) are extracted in S172. A predeterminedinterpolation function h(r) is used, and, a distance r from thereference (ideal) pixel position P_(n) and an actually obtained pixelposition Q is applied to the interpolation function, and thus a valueh(r) is obtained, in S173. The thus-obtained value h(r) is used as acorrection factor. The interpolation function h(r) is, according todivisional cubic polynomial approximation of sin x/x, as follows:

    h(r)=1-2|r|.sup.2 +|r|.sup.3(8),

where 0≦|r|<1;

    h(r)=4-8|r|+5|r|.sup.2 -|r|.sup.3                              (9),

where 1≦|r|<2; and

    h(r)=0                                                     (10),

where 2≦|r|.

Then, such a correction factor is obtained for the image data for eachpixel of the pixels Q_(n), Q_(n+1), Q_(n+2), Q_(n+3) and Q_(n+4)extracted in S172, by applying respective distances r (r1, r2, r3, r4and r5) from the ideal pixel position P_(n). Thus, the correctionfactors h(r1), h(r2), h(r3), h(r4) and h(r5) are obtained for the pixelsQ_(n), Q_(n+1), Q_(n+2), Q_(n+3) and Q_(n+4) in S173. Those correctionfactors are used as weights for the actually obtained image data of thepixels Q_(n), Q_(n+1), Q_(n+2), Q_(n+3) and Q_(n+4) . Thus, the correctimage data of the pixel P_(n) is estimated by the following equation(11): ##EQU7## where the image data of the pixels P_(n), Q_(n+1),Q_(n+2), Q_(n+3) and Q_(n+4) are represented by P_(n), Q_(n+1), Q_(n+2),Q_(n+3) and Q_(n+4), respectively.

Thus, the correct image data of the pixel P_(n) is calculated. A similaroperation is performed for each pixel P_(n) on the n-th main scan line.Then, the main scan line to be processed is shifted into the (n+1)thmain scan line. Then, for the (n+1)th main scan line, a similaroperation is performed. Thus, using the reading pixel position errors,which are measured by the position error measurement unit 4 as describedabove, the correct image data, which should be obtained when theoriginal image object reading is performed with correct reading pixelpositions without reading carriage speed variation, is estimated. Thus,the image data error due to reading pixel position error is corrected,and, thus, the reading pixel position error correction operation isperformed on all the main scan lines, in S174. The thus-obtained imagedata is output in S175. In the above-described operation, thecalculation of the correction factors h(r) and the calculations of thereciprocal of the total of the correction factors in the equation (11)need to be performed once when performing the reading pixel positionerror correction operation for each main scan line.

FIGS. 47A and 47B show states, as an example, of a bit-map formation ofobtained image data, before and after performing such a reading pixelposition error correction. Ordinarily, actual original image objectreading of the image reading apparatus is performed after it isdetermined that the reading carriage scanning speed reaches a fixedspeed. However, in this example, in order to show reading pixel positionerrors remarkably, the original image object reading operation startsimmediately after the reading carriage starts to move. In this case, 45°oblique line images are read together with other images. In each ofFIGS. 47A and 47B, a left-hand portion indicates the obtained obliqueline images. Using the oblique line images, the reading pixel positionerrors are measured as described above, the thus-obtained error data isused and, thus, the reading pixel position error correction describedabove is performed. As a result, the images shown in FIG. 47B areobtained. Those images shown in FIG. 47B are, with a high accuracy,similar to those of the original images which are those of the originalimage object and read by the image reading apparatus first as mentionedabove. In contrast thereto, in FIG. 47A, in a top area, because thereading carriage speed has not reached the fixed speed, the images areelongated vertically, and also the oblique line images are oblique moresteeply. Thus, an amount of reading pixel position error is large there.Thus, even if an original image object reading is performed with a largeamount of reading pixel position error, images which are , with a highaccuracy, similar to the original images can be obtained as a result ofperforming the reading pixel position error correction according to thepresent invention.

Possible embodiments of the present invention are not limited to thoseembodiments described above. It is possible that units/functions of theabove-described embodiments are appropriately combined so that theadvantages thereof may be effectively, cooperatively provided. Forexample, it is possible to apply the noise reduction processing unit 14shown in FIG. 23 to the image reading apparatus shown in FIG. 43.Thereby, image data undergoes the noise reduction processing, readingpixel position error measurement processing and reading pixel positionerror correction processing. As a result, the image data, which canreproduce, in high accuracy, images of an original image object read bythe image reading apparatus, can be obtained.

Further, the present invention is not limited to the above-describedembodiments, and variations and modifications may be made withoutdeparting from the scope of the present invention.

What is claimed is:
 1. An image reading apparatus comprising:imagereading means for reading an original image within an image bearingmember, one main scan line by one main scan line, in a sub-scandirection; window setting means for setting a measuring window in abit-map formation of image data obtained through said image readingmeans, in a manner in which said measuring window moves in apredetermined manner so that said measuring window appropriatelyincludes pixels of an oblique line image which is formed in said bit-mapformation of image data as a result of being read through said imagereading means; and position error measuring means for processing imagedata defined by said measuring window, and, thus, measuring an error ofsaid oblique line image formed in said bit-map formation of obtainedimage data between a predetermined reference state and an actual readingstate.
 2. An image reading apparatus comprising:image reading means forreading an original image within an image bearing member, one main scanline by one main scan line, in a sub-scan direction; window settingmeans for setting a measuring window in a bit-map formation of imagedata obtained through said image reading means, in a manner in whichsaid measuring window moves in a predetermined manner, said measuringwindow including pixels of an oblique line image which is formed in saidbit-map formation of image data as a result of being read through saidimage reading means; and position error measuring means for processingimage data defined by said measuring window, calculating a position ofpixels of said oblique line image within said measuring window for eachposition of said measuring window, calculating a deviation of saidposition of pixels of said oblique line image within said measuringwindow when said measuring window moves.
 3. The image reading apparatusaccording to claim 2, wherein:said bit-map formation comprises aplurality of pixels, each pixel having a main scan direction size and asub-scan direction size, which sizes are the same as one another; andsaid oblique line image is positioned at an oblique angle 45° from saidmain scan direction and also from said sub-scan direction.
 4. The imagereading apparatus according to claim 2, wherein said position errormeasuring means calculates the center of gravity of image data of pixelsdefined by said measuring window in said bit-map formation of obtainedimage data, and also calculates a deviation of the center of gravitywhen said measuring window is shifted.
 5. The image reading apparatusaccording to claim 2, wherein said window setting means sets themeasuring window in the bit-map formation of image data obtained throughsaid image reading means, in a manner in which said measuring windowmoves along a plurality of oblique line images, one oblique line imageby one oblique line image, which oblique line images are formed in saidbit-map formation of image data as a result of being read through saidimage reading means.
 6. The image reading apparatus according to claim2, wherein:said plurality of oblique line images are oblique from saidmain scan direction and also from said sub-scan direction, are arrangedin parallel to each other, are arranged in said sub-scan direction,wherein each pair of adjacent oblique line images are so close to oneanother that a sub-scan direction one of said pair adjacent oblique lineimages has a tail end and the other one has a head end which projectsfurther in said sub-scan line direction than said tail end of saidsub-scan direction one; and said measuring window moves from a positionof said head end of said other oblique line image to a position of saidtail end of said sub-scan direction oblique line image.
 7. An imagereading apparatus comprising:image reading means for reading an originalimage within an image bearing member, one main scan line by one mainscan line, in a sub-scan direction; error measuring means for measuringa reading pixel position error included in image data obtained throughsaid image reading means, and providing data concerning said readingpixel position error; and error correcting means for correcting saidreading pixel position error using said data provided by said errormeasuring means.
 8. The image reading apparatus according to claim 7,wherein said error measuring means comprises:a measuring patterncomprising even-pitch oblique lines, each of which is oblique from amain scan direction and also from said sub-scan direction;light-to-electricity converting means for reading said measuringpattern, and providing image data of said measuring pattern; processingmeans for processing said image data provided by saidlight-to-electricity converting means, and obtaining said reading pixelposition error.
 9. The image reading apparatus according to claim 7,wherein:said error measuring means measures a reading pixel positionerror between each pair of adjacent main scan lines; and said errorcorrecting means uses said reading pixel position error measured by saiderror measuring means, performs a predetermined interpolation operationon image data of a plurality of main scan lines which successively liein said sub-scan direction, and thus provides corrected image data onemain scan line by one main scan line.
 10. An image reading apparatus,comprising:image reading means for reading an original image within animage bearing member, one main scan line by one main scan line, in asub-scan direction; and position error measuring means for processingimage data read through said image reading means, said image data beingobtained as a result of a measuring pattern being read by said imagereading means, said measuring pattern comprising a white background anda plurality of even-pitch oblique lines arranged in said whitebackground, each line being oblique from a main scan direction and alsofrom said sub-scan direction; and wherein said measuring pattern isformed on a sheet material which is long and has alongitudinal-direction end, said sheet material being fixed, so thatsaid measuring pattern can be read through said image reading means, onsaid image reading apparatus only through said longitudinal-directionend.
 11. An image reading apparatus comprising:image reading means forreading an original image within an image bearing member, one main scanline by one main scan line, in a sub-scan direction; position errormeasuring means for processing image data read through said imagereading means, said image data being obtained as a result of a measuringpattern being read by said image reading means, said measuring patterncomprising a white background and a plurality of even-pitch obliquelines arranged in said white background, each line being oblique from amain scan direction and also from said sub-scan direction; and noisereduction processing means for performing a predetermined noisereduction operation on said image data of said measuring pattern. 12.The image reading apparatus according to claim 11, wherein said positionerror measuring means sets a measuring window in a bit-map formation ofsaid image data, in a manner in which said measuring window moves alongeach of said oblique lines of said measuring pattern in said bit-mapformation of said image data; and obtains the center of gravity of saidimage data of pixels defined by said measuring window.
 13. The imagereading apparatus according to claim 12, wherein said noise reductionprocessing means comprises means for converting image data of a pixel tobe `0`, which pixel is apart, more than a predetermined distance, fromsaid oblique line image in said measuring window.
 14. The image readingapparatus according to claim 11, wherein said noise reduction processingmeans comprises means for performing a predetermined smoothing operationon said image data.
 15. The image reading apparatus according to claim11, wherein said noise reduction processing means comprises means forremoving image data representing a separate point.
 16. The image readingapparatus according to claim 11, wherein said noise reduction processingmeans comprises means for enlarging a contrast of said image data. 17.The image reading apparatus according to claim 11, wherein said noisereduction processing means comprises means for increasing a number ofpossible tone levels of said image data and, also, means for performinga predetermined smoothing operation on image data of an increased numberof possible tone levels.
 18. The image reading apparatus according toclaim 11, wherein said noise reduction processing means comprises meansfor improving a resolution of said image data and, also, means forperforming a predetermined smoothing operation on image data of animproved resolution.
 19. The image reading apparatus according to claim11, wherein said noise reduction processing means comprises means forincreasing a number of possible tone levels of said image data, meansfor improving a resolution of said image data, and, also, means forperforming a predetermined smoothing operation on image data of anincreased number of possible tone levels and an improved resolution. 20.A computer-implemented image processing method, comprising steps of:a)setting a measuring window in a bit-map formation of image data, whichimage data is read from an original image within an image bearingmember, one main scan line by one main scan line, in a sub-scandirection, in a manner in which said measuring window moves in apredetermined manner so that said measuring window appropriatelyincludes pixels of an oblique line image which is formed in said bit-mapformation of image data as a result of being read from said originalimage; and b) processing image data defined by said measuring window,and, thus, measuring an error of said oblique line image formed in saidbit-map formation of obtained image data between a predeterminedreference state and an actual reading state.
 21. A computer-implementedimage processing method, comprising:a) setting a measuring window in abit-map formation of image data, which is read from an original imagewithin an image bearing member, one main scan line by one main scanline, in a sub-scan direction, in a manner in which said measuringwindow moves in a predetermined manner, said measuring window includingpixels of an oblique line image which is formed in said bit-mapformation of image data as a result of being read from said originalimage; and b) processing image data defined by said measuring window,calculating a position of pixels of said oblique line image within saidmeasuring window for each position of said measuring window, calculatinga deviation of said position of pixels of said oblique line image withinsaid measuring window when said measuring window moves.
 22. Acomputer-implemented image processing method, comprising steps of:a)measuring a reading pixel position error included in image data with ameasuring window, which is read from an original image within an imagebearing member, one main scan line by one main scan line, in a sub-scandirection, and providing data concerning said reading pixel positionerror; and b) correcting said reading pixel position error using saiddata provided by said step a).
 23. A computer-implemented imageprocessing method, comprising step of processing image data read throughimage reading means, said image reading means reading an original imagewithin an image bearing member, one main scan line by one main scanline, in a sub-scan direction, said image data being obtained as aresult of a measuring pattern being read through said image readingmeans, said measuring pattern comprising a white background and aplurality of even-pitch oblique lines arranged in said white background,each line being oblique from a main scan direction and also from saidsub-scan direction;and wherein said measuring pattern is formed on asheet material which is long and has a longitudinal-direction end, saidsheet material being fixed, so that said measuring pattern can be readthrough said image reading means, on said image reading apparatus onlythrough said longitudinal-direction end.
 24. A computer-implementedimage processing method, comprising steps of:a) processing image dataread through image reading means, said image reading means for readingan original image within an image bearing member, one main scan line byone main scan line, in a sub-scan direction, said image data beingobtained as a result of a measuring pattern being read by said imagereading means, said measuring pattern comprising a white background anda plurality of even-pitch oblique lines arranged in said whitebackground, each line being oblique from a main scan direction and alsofrom said sub-scan direction; and b) performing a predetermined noisereduction operation on said image data of said measuring pattern.
 25. Acomputer program product, comprising:a computer usable medium havingcomputer readable program code means embodied in said medium, saidcomputer readable program code means comprising: first program codemeans for setting a measuring window in a bit-map formation of imagedata, which image data is read from an original image within an imagebearing member, one main scan line by one main scan line, in a sub-scandirection, in a manner in which said measuring window moves in apredetermined manner so that said measuring window appropriatelyincludes pixels of an oblique line image which is formed in said bit-mapformation of image data as a result of being read from said originalimage; and second program code means for processing image data definedby said measuring window, and, thus, measuring an error of said obliqueline image formed in said bit-map formation of obtained image databetween a predetermined reference state and an actual reading state. 26.A computer program product, comprising:a computer usable medium havingcomputer readable program code means embodied in said medium, saidcomputer readable program code means comprising: first program codemeans for setting a measuring window in a bit-map formation of imagedata, which is read from an original image within an image bearingmember, one main scan line by one main scan line, in a sub-scandirection, in a manner in which said measuring window moves in apredetermined manner, said measuring window including pixels of anoblique line image which is formed in said bit-map formation of imagedata as a result of being read from said original image; and secondprogram code means for processing image data defined by said measuringwindow, calculating a position of pixels of said oblique line imagewithin said measuring window for each position of said measuring window,calculating a deviation of said position of pixels of said oblique lineimage within said measuring window when said measuring window moves. 27.A computer program product, comprising:a computer usable medium havingcomputer readable program code means embodied in said medium, saidcomputer readable program code means comprising: first program codemeans for measuring a reading pixel position error with a measuringwindow included in image data, which is read from an original imagewithin an image bearing member, one main scan line by one main scanline, in a sub-scan direction, and providing data concerning saidreading pixel position error; and second program code means forcorrecting said reading pixel position error using said data providedthrough said first program code means.
 28. A computer program product,comprising:a computer usable medium having computer readable programcode means embodied in said medium, said computer readable program codemeans comprising program code means for processing image data readthrough image reading means, said image reading means reading anoriginal image within an image bearing member, one main scan line by onemain scan line, in a sub-scan direction, said image data being obtainedas a result of a measuring pattern being read through said image readingmeans, said measuring pattern comprising a white background and aplurality of even-pitch oblique lines arranged in said white background,each line being oblique from a main scan direction and also from saidsub-scan direction; and wherein said measuring pattern is formed on asheet material which is long and has a longitudinal-direction end, saidsheet material being fixed, so that said measuring pattern can be readthrough said image reading means, on said image reading apparatus onlythrough said longitudinal-direction end.
 29. A computer program product,comprising:a computer usable medium having computer readable programcode means embodied in said medium, said computer readable program codemeans comprising: first program code means for processing image dataread through image reading means, said image reading means for readingan original image within an image bearing member, one main scan line byone main scan line, in a sub-scan direction, said image data beingobtained as a result of a measuring pattern being read by said imagereading means, said measuring pattern comprising a white background anda plurality of even-pitch oblique lines arranged in said whitebackground, each line being oblique from a main scan direction and alsofrom said sub-scan direction; and second program code means forperforming a predetermined noise reduction operation on said image dataof said measuring pattern.